Support for <stdio.h> is limited to those function that are useful in the embedded environment. In particular, the only files available are the three standard files, stdin, stdout and stderr. Other files are not available, and functions that operate on such files are omitted.
#include <stdio.h>
int
printf
(const char *
format , ... );
The printf function is supported as specified in ANSI C 7.9.6.3.
The printf function returns the number characters printed.
The printf function uses an internal buffer of 256 characters. This limits the length of the text printed by one call to printf to 255 characters.
#include <stdio.h>
int
sprintf
(char *
s , const char *
format , ... );
The sprintf function is supported as specified in ANSI C 7.9.6.5.
The sprintf function returns the number of characters printed.
#include <stdio.h>
int
vprintf
( const
, char * format , va_list ,
arg );
The vprintf function is supported as specified in ANSI C 7.9.6.8.
The vprintf function returns the number of characters printed.
The vprintf function uses an internal buffer of 256 characters. This limits the length of the text printed by one call to vprintf to 255 characters.
#include <stdio.h>
int
vsprintf
(char *
s , const , char *
format , va_list arg );
The vsprintf function is supported as specified in ANSI C 7.9.6.9.
The vsprintf function returns the number of characters printed.