In contrast to the standard, Nut/OS streams do not maintain there own buffers. Any input or output buffering is done in the device driver.
Nut/OS will not associate the standard streams stdin, stdout and stderr to a device when starting the application. Instead, freopen() can be used by the application to redirect any of these stream to any previously opened file, device or connected socket.
As an extension to the standard, many function come in an additional flavour with
_P appended to their name. These functions accept specific parameters pointing into program space.
Output Call Graph
Input Call Graph
|Fully buffered. |
|Line buffered. |
|End of file. |
|Standard error output stream. |
|Standard input stream. |
|Standard output stream. |
|Stream structure type. |
|FILE *||__iob |
|#define EOF (-1)|
End of file.
Returned by an input or output operation when the end of a file is encountered. Some routines return this value to indicate an error.
|typedef struct __iobuf FILE|
Stream structure type.
A pointer to this type is used for all standard I/O functions to specify a stream.