Standard I/O
[C Runtime Library.]


Detailed Description

Standard stream interface to Nut/OS devices.

 #include <stdio.h> 

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

inline_dotgraph_2

Input Call Graph

inline_dotgraph_3


Defines

#define _IOFBF   0x00
 Fully buffered.
#define _IOLBF   0x01
 Line buffered.
#define _IONBF   0x02
 Unbuffered.
#define EOF   (-1)
 End of file.
#define stderr   (__iob[2])
 Standard error output stream.
#define stdin   (__iob[0])
 Standard input stream.
#define stdout   (__iob[1])
 Standard output stream.

Typedefs

typedef __iobuf FILE
 Stream structure type.

Variables

FILE__iob []


Define Documentation

#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 Documentation

typedef struct __iobuf FILE

Stream structure type.

A pointer to this type is used for all standard I/O functions to specify a stream.

Note:
Applications should make any assumptions about the contents of this structure as it may change without further notice.
Examples:
bt-lego/bt-lego.c, ccc-cmd/ccc-cmd.c, l2cap-cmd/l2cap-cmd.c, rfcomm-cmd/rfcomm-cmd.c, uart-echo/uart-echo.c, and uart-suart/uart-suart.c.


Variable Documentation

FILE* __iob[]

For internal use only.

Stream slots.


Generated on Wed Apr 29 11:12:31 2009 for BTnut System Software by doxygen 1.5.1