C Language: Standard Library Functions - stdio.h
In the C Programming Language, the Standard Library Functions are divided into several header files.
The following is a list of functions found within the <stdio.h> header file:
Formatted Input/Output functions
fprintf | Formatted File Write |
fscanf | Formatted File Read |
printf | Formatted Write |
scanf | Formatted Read |
sprintf | Formatted String Write |
sscanf | Formatted String Read |
vfprintf | Formatted File Write Using Variable Argument List |
vprintf | Formatted Write Using Variable Argument List |
vsprintf | Formatted String Write Using Variable Argument List |
File Operation functions
fclose | Close File |
fflush | Flush File Buffer |
fopen | Open File |
freopen | Reopen File |
remove | Remove File |
rename | Rename File |
setbuf | Set Buffer (obsolete) |
setvbuf | Set Buffer |
tmpfile | Create Temporary File |
tmpnam | Generate Temporary File Name |
Character Input/Output functions
fgetc | Read Character from File |
fgets | Read String from File |
fputc | Write Character to File |
fputs | Write String to File |
getc | Read Characters from File |
getchar | Read Character |
gets | Read String |
putc | Write Character to File |
putchar | Write Character |
puts | Write String |
ungetc | Unread Character |
Block Input/Output functions
fread | Read Block from File |
fwrite | Write Block to File |
File Positioning functions
fgetpos | Get File Position |
fseek | File Seek |
fsetpos | Set File Position |
ftell | Determine File Position |
rewind | Rewind File |
Error Handling functions
clearerr | Clear Stream Error |
feof | Test for End-of-File |
ferror | Test for File Error |
perror | Print Error Message |
Advertisements