Nut/OS  4.10.3
API Reference
C Runtime Library.

Complementary runtime support. More...

Collaboration diagram for C Runtime Library.:

Data Structures

struct  __iobuf

Modules

 Standard I/O
 

Standard stream interface to Nut/OS devices.


 Low Level I/O
 

Low level input and output operations.


 Time handling Functions
 

Implements some standard C time functions.


 Miscellaneous Functions
 

Complementary runtime support.


 Standard Lib
 

C Standard Library.


 Strings
 

C Standard String Library.


Defines

#define _IOUNG   0x08
#define _IOERR   0x10
#define _IOEOF   0x20
#define _IOPGM   0x40
#define BUFSIZ   128
 Default maximum size of stream buffers. Currently not used.
#define FOPEN_MAX   8
 Default maximum number of open streams.
#define FILENAME_MAX   255
 Default maximum size of filenames.

Detailed Description

Complementary runtime support.

Normal C language runtime libraries are too large for small embedded systems and many functions require an underlying operating system. Compilers for the AVR provide a limited subset only, which do not include sufficient device support.

Nut/OS includes its own runtime library. When linked with an application, this library partly overrides the standard library which comes with your compiler.

Warning:
Using these functions requires to link nutcrt or nutcrtf before the compiler's standard libraries.

Define Documentation

#define _IOUNG   0x08

Definition at line 68 of file nut_io.h.

Referenced by fgetc(), fread(), and ungetc().

#define _IOERR   0x10

Definition at line 69 of file nut_io.h.

Referenced by ferror(), fgetc(), and fread().

#define _IOEOF   0x20

Definition at line 70 of file nut_io.h.

Referenced by feof(), fgetc(), and fread().

#define _IOPGM   0x40

Definition at line 71 of file nut_io.h.

#define BUFSIZ   128

Default maximum size of stream buffers. Currently not used.

Definition at line 74 of file nut_io.h.

#define FOPEN_MAX   8

Default maximum number of open streams.

Definition at line 80 of file nut_io.h.

Referenced by _fdopen(), _flushall(), fclose(), fcloseall(), fopen(), and freopen().

#define FILENAME_MAX   255

Default maximum size of filenames.

Definition at line 85 of file nut_io.h.