Standard C I/O

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

clearerr clears errors
fclose close a file
feof true if at the end-of-file
ferror checks for a file error
fflush writes the contents of the output buffer
fgetc get a character from a stream
fgetpos get the file position indicator
fgets get a string of characters from a stream
fopen open a file
fprintf print formatted output to a file
fputc write a character to a file
fputs write a string to a file
fread read from a file
freopen open an existing stream with a different name
fscanf read formatted input from a file
fseek move to a specific location in a file
fsetpos move to a specific location in a file
ftell returns the current file position indicator
fwrite write to a file
getc read a character from a file
getchar read a character from STDIN
gets read a string from STDIN
perror displays a string version of the current error to STDERR
printf write formatted output to STDOUT
putc write a character to a stream
putchar write a character to STDOUT
puts write a string to STDOUT
remove erase a file
rename rename a file
rewind move the file position indicator to the beginning of a file
scanf read formatted input from STDIN
setbuf set the buffer for a specific stream
setvbuf set the buffer and size for a specific stream
sprintf write formatted output to a buffer
sscanf read formatted input from a buffer
tmpfile return a pointer to a temporary file
tmpnam return a unique filename
ungetc puts a character back into a stream
vprintf, vfprintf, and vsprintf write formatted output with variable argument lists