![]() |
![]() |
![]() |
![]() |
StdIOPalm.h and StdIOProvider.h declare the standard IO API. For more information on using the standard IO API, see the chapter "Standard IO Applications"in the Palm OS Programmer's Companion.
Siofgetc to return the next character from the input stream.
fgetc(fs)
|   |
-> |
An input stream from which to read the next character. You can specify only the value stdin for this parameter; alternate streams are not currently implemented. |
EOF indicates an error occurred.
Siofgets to return a string from the input stream.
fgets(strP, maxChars, fs)
|   |
<- strP |
A pointer to the returned string. |
|   |
-> maxChars |
The number of characters to read from the input stream, plus one for the null terminator. |
|   |
-> |
An input stream from which to read the next character. You can specify only the value stdin for this parameter; alternate streams are not currently implemented. |
Siofprintf to write formatted output to an output stream.
fprintf(fs, formatP, ...)
|   |
-> |
An output stream to which to write the formatted output. You can specify only the value stdout for this parameter; alternate streams are not currently implemented. |
|   |
-> |
A pointer to a format string that controls how subsequent arguments are converted for output. |
|   |
-> ... |
Zero or more parameters to be formatted as specified by the formatP string. |
StrVPrintF to do the formatting. See that function for details on which format specifications are supported.
Siofputc to write a character to the output stream.
fputc(c, fs)
|   |
-> |
A character to write to the output stream. |
|   |
-> |
An output stream to which to write the character. You can specify only the value stdout for this parameter; alternate streams are not currently implemented. |
EOF is returned.
Siofputs to write a string to the output stream.
fputs(strP, fs)
|   |
-> strP |
A pointer to the string to write. |
|   |
-> |
An output stream to which to write the string. You can specify only the value stdout for this parameter; alternate streams are not currently implemented. |
EOF on error.
Siofgetc to read the next character from the stdin input stream.
getchar()
EOF indicates an error occurred.
Siogets to read a string from the stdin input stream.
gets(strP)
Sioprintf to write formatted output to the stdout output stream.
printf(formatP, ...)
|   |
-> |
A pointer to a format string that controls how subsequent arguments are converted for output. |
|   |
-> ... |
Zero or more parameters to be formatted as specified by the formatP string. |
StrVPrintF to do the formatting. See that function for details on which format specifications are supported. Returns a negative number if there is an error.
Siofputc to write a character to the output stream.
putc(c, fs)
|   |
-> |
A character to write to the output stream. |
|   |
-> |
An output stream to which to write the character. You can specify only the value stdout for this parameter; alternate streams are not currently implemented. |
EOF is returned.
Siofputc to write a character to the stdout output stream.
putchar(c)
EOF is returned.
Sioputs to write a string to the output stream stdout.
puts(strP)
EOF on error.
void SioAddCommand (Char* cmdStr, SioMainProcPtr cmdProcP)
|   |
-> |
Pointer to a string that is the command name. |
|   |
-> |
Pointer to the command entry point function (the SioMain function). |
StrPrintF to write formatted output to the stdout output stream.
sprintf (formatP, ...)
|   |
-> |
A pointer to a format string that controls how subsequent arguments are converted for output. |
|   |
-> ... |
Zero or more parameters to be formatted as specified by the formatP string. |
StrVPrintF for details on which format specifications are supported. Returns a negative number if there is an error.
Siosystem to execute another Stdio command.
system(cmdStrP)
cmdStrP.
SioExecCommand
Siovfprintf to write formatted output to the stdout output stream.
vfprintf (fs, formatP, args)
|   |
-> |
An output stream to which to write the formatted output. You can specify only the value stdout for this parameter; alternate streams are not currently implemented. |
|   |
-> |
A pointer to a format string that controls how subsequent arguments are converted for output. |
|   |
-> |
A pointer to a list of zero or more parameters to be formatted as specified by the formatP string. |
StrVPrintF to do the formatting. See that function for details on which format specifications are supported.
StrVPrintF to write formatted output to the stdout output stream.
vsprintf (fs, formatP, args)
|   |
-> |
An output stream to which to write the formatted output. You can specify only the value stdout for this parameter; alternate streams are not currently implemented. |
|   |
-> |
A pointer to a format string that controls how subsequent arguments are converted for output. |
|   |
-> |
A pointer to a list of zero or more parameters to be formatted as specified by the y string. |
StrVPrintF for details on which format specifications are supported.
void SioClearScreen(void)
Int16 SioExecCommand (const Char* cmd)
cmd.
cmd parameter, SioExecCommand causes a help string to be printed for each built-in command. It actually executes each built-in command, passing the string "?" as argv[1]. Each command should handle this argument by printing a help line.
SioExecCommand function is faster than calling system to execute a command. However, SioExecCommand can be called only by the standard IO provider application, not the standard IO application.
system
Err SioFree(void)
Boolean SioHandleEvent (SysEventType* event)
true if the event was handled and should not be processed by the application's own form event handler; returns false otherwise.
Err SioInit (UInt16 formID, UInt16 fieldID, UInt16 scrollerID)
|   |
-> |
The ID of the form that contains the input/output field. |
|   |
-> |
The ID of the field to be used for input/output. |
|   |
-> |
The ID of the scroller associated with the input/output form. |
Int16 SioMain (UInt16 argc, Char* argv[])
|   |
-> |
The number of parameters passed on the command line. |
|   |
-> |
An array of character pointers, one for each parameter passed on the command line. |
|   | ![]() |
![]() |
![]() |
![]() |
  |