cppreference.com > Standard C I/O
Standard C I/O

Display all entries for Standard C I/O on one page, or view entries individually:

clearerrclears errors
fcloseclose a file
feoftrue if at the end-of-file
ferrorchecks for a file error
fflushwrites the contents of the output buffer
fgetcget a character from a stream
fgetposget the file position indicator
fgetsget a string of characters from a stream
fopenopen a file
fprintfprint formatted output to a file
fputcwrite a character to a file
fputswrite a string to a file
freadread from a file
freopenopen an existing stream with a different name
fscanfread formatted input from a file
fseekmove to a specific location in a file
fsetposmove to a specific location in a file
ftellreturns the current file position indicator
fwritewrite to a file
getcread a character from a file
getcharread a character from STDIN
getsread a string from STDIN
perrordisplays a string version of the current error to STDERR
printfwrite formatted output to STDOUT
putcwrite a character to a stream
putcharwrite a character to STDOUT
putswrite a string to STDOUT
removeerase a file
renamerename a file
rewindmove the file position indicator to the beginning of a file
scanfread formatted input from STDIN
setbufset the buffer for a specific stream
setvbufset the buffer and size for a specific stream
sprintfwrite formatted output to a buffer
sscanfread formatted input from a buffer
tmpfilereturn a pointer to a temporary file
tmpnamreturn a unique filename
ungetcputs a character back into a stream
vprintf, vfprintf, and vsprintfwrite formatted output with variable argument lists