Nut/OS  5.0.5
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

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

#define _IOERR   0x10

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

#define _IOEOF   0x20

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

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

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

#define FILENAME_MAX   255

Default maximum size of filenames.