This documentation is copyright © 1998-2001 Sandro Sigala <sandro@sigala.it>.
All rights reserved.

Released under the GNU General Public License.

Return to index Up one level Previous symbol Next symbol

The ISO C <stdio.h> Header

Click here for a summary of the <stdio.h> header.

Macros

_IOFBFThe full buffering constant
_IOLBFThe line buffering constant
_IONBFThe no buffering constant
BUFSIZThe best block size for input/output efficiency
EOFThe end of file status constant
FILENAME_MAXThe maximum file name length
FOPEN_MANThe maximum number of open files
L_tmpnamThe buffer size for a temporary file name
NULLThe null pointer constant
SEEK_CURThe current position seeking relative constant
SEEK_ENDThe end of file seeking relative constant
SEEK_SETThe beginning of file seeking relative constant
TMP_MAXThe maximum number of generated temporary file names

Types

FILEThe stream type
fpos_tThe file position type
size_tThe size type

Lvalues

stderrThe standard error stream
stdinThe standard input stream
stdoutThe standard output stream

Functions

fopenOpen a stream
freopenClose a stream and open another stream
tmpfileOpen a temporary stream
fcloseClose a stream
setbufAssociate a buffer to a stream
setvbufChange the buffering method of a stream
fflushFlush a stream
feofCheck the end of file status of a stream
ferrorCheck the error status of a stream
clearerrClear the status indicators of a stream
ftellObtain the current stream position
fseekSet the file position
rewindSet the file position to the beginning of the file
fgetposStore the current stream position
fsetposSet the stream position
getcharRead a character from the standard input
fgetcRead a character from a stream
getcRead a character from a stream
ungetcPushes a character back into a stream
fgetsRead a string from a stream
getsRead a string from a stream
freadRead a block from a stream
putcharWrite a character into the standard output
fputcWrite a character into a stream
putcWrite a character into a stream
fputsWrite a string into a stream
putsWrite a string into a stream
fwriteWrite a block into a stream
fscanfRead a formatted input from a stream
scanfRead a formatted input from the standard input
sscanfRead a formatted input from a string
fprintfWrite a formatted output into a stream
vfprintfWrite a formatted output into a stream
printfWrite a formatted output into the standard output
vprintfWrite a formatted output into the standard output
sprintfWrite a formatted output into a string
vsprintfWrite a formatted output into a string
perrorWrite an error message on the standard error
removeRemove a file
renameRename a file
tmpnamGenerate an unique temporary file name