Popular Posts

C LANGUAGE: STDIO.H - FUNCTIONS

C LANGUAGE: STANDARD LIBRARY FUNCTIONS - STDIO.H



FORMATTED INPUT/OUTPUT FUNCTIONS

fprintf(filepointer,"format specifier",arguments)Formatted File Write
fscanf(filepointer,"format specifier",&arguments)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("file address","file mood")Close File
fflush()Flush File Buffer
fopen("file address","file mood")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

No comments:

Post a Comment