C Library Files

The header <cstdio> contains the C++ implementation of the Standard C Headers.

This chapter is constructed in the following sub sections and uses the ISO (International Organization for Standardization) C++ Standard as a guide:

Table 1. <cstdio> Macros
Macros    
BUFSIZ EOF FILENAME_MAX
FOPEN_MAX L_tmpnam NULL
SEEK_CUR SEEK_END SEEK_SET
stderr stdin stdout
TMP_MAX _IOFBF _IOLBF
_IONBF    
Table 2. <cstdio> Types
Types:    
FILE fpos_t size_t
     
Table 3. <cstdio> Functions
Functions:    
clearerr fclose feof
ferror fflush fgetc
fgetpos fgets fopen
fprintf fputc fputs
fread freopen fscanf
fseek fsetpos ftell
fwrite getc getchar
gets perror printf
putc putchar puts
remove rename rewind
scanf setbuf setvbuf
sprintf scanf tmpnam
ungetc vprintf vfprintf
vsprintf tmpfile