totn C Functions

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

fprintfFormatted File Write
fscanfFormatted File Read
printfFormatted Write
scanfFormatted Read
sprintfFormatted String Write
sscanfFormatted String Read
vfprintfFormatted File Write Using Variable Argument List
vprintfFormatted Write Using Variable Argument List
vsprintfFormatted String Write Using Variable Argument List

File Operation functions

fcloseClose File
fflushFlush File Buffer
fopenOpen File
freopenReopen File
removeRemove File
renameRename File
setbufSet Buffer (obsolete)
setvbufSet Buffer
tmpfileCreate Temporary File
tmpnamGenerate Temporary File Name

Character Input/Output functions

fgetcRead Character from File
fgetsRead String from File
fputcWrite Character to File
fputsWrite String to File
getcRead Characters from File
getcharRead Character
getsRead String
putcWrite Character to File
putcharWrite Character
putsWrite String
ungetcUnread Character

Block Input/Output functions

freadRead Block from File
fwriteWrite Block to File

File Positioning functions

fgetposGet File Position
fseekFile Seek
fsetposSet File Position
ftellDetermine File Position
rewindRewind File

Error Handling functions

clearerrClear Stream Error
feofTest for End-of-File
ferrorTest for File Error
perrorPrint Error Message