Functions
Operations on files :-
remove
- Remove file (function )
-
rename
- Rename file (function )
-
tmpfile
- Open a temporary file (function )
-
tmpnam
- Generate temporary filename (function )
File access :
-
fclose
- Close file (function )
-
fflush
- Flush stream (function )
-
fopen
- Open file (function )
-
freopen
- Reopen stream with different file or mode (function )
-
setbuf
- Set stream buffer (function )
-
setvbuf
- Change stream buffering (function )
Formatted input/output :
-
fprintf
- Write formatted data to stream (function )
-
fscanf
- Read formatted data from stream (function )
-
printf
- Print formatted data to stdout (function )
-
scanf
- Read formatted data from stdin (function )
-
snprintf
- Write formatted output to sized buffer (function )
-
sprintf
- Write formatted data to string (function )
-
sscanf
- Read formatted data from string (function )
-
vfprintf
- Write formatted data from variable argument list to stream (function )
-
vfscanf
- Read formatted data from stream into variable argument list (function )
-
vprintf
- Print formatted data from variable argument list to stdout (function )
-
vscanf
- Read formatted data into variable argument list (function )
-
vsnprintf
- Write formatted data from variable argument list to sized buffer (function )
-
vsprintf
- Write formatted data from variable argument list to string (function )
-
vsscanf
- Read formatted data from string into variable argument list (function )
Character input/output :
-
fgetc
- Get character from stream (function )
-
fgets
- Get string from stream (function )
-
fputc
- Write character to stream (function )
-
fputs
- Write string to stream (function )
-
getc
- Get character from stream (function )
-
getchar
- Get character from stdin (function )
-
gets
- Get string from stdin (function )
-
putc
- Write character to stream (function )
-
putchar
- Write character to stdout (function )
-
puts
- Write string to stdout (function )
-
ungetc
- Read block of data from stream (function )
- Write block of data to stream (function )
- Get current position in stream (function )
- Reposition stream position indicator (function )
- Set position indicator of stream (function )
- Get current position in stream (function )
- Set position of stream to the beginning (function )
- Clear error indicators (function )
- Check end-of-file indicator (function )
- Check error indicator (function )
- Print error message (function )
- Buffer size (constant )
- End-of-File (constant )
- Maximum length of file names (constant )
- Potential limit of simultaneous open streams (constant )
- Minimum length for termporary file name (constant )
- Null pointer (constant )
- Number of temporary files (constant )
- Object containing information to control a stream (type )
- Object containing information to specify a position within a file (type )
- Unsigned integral type (type )
Unget character from stream (function )
Direct input/output:
-
fread
-
fwrite
File positioning:
-
fgetpos
-
fseek
-
fsetpos
-
ftell
-
rewind
Error-handling:
-
clearerr
-
feof
-
ferror
-
perror
Macros
-
BUFSIZ
-
EOF
-
FILENAME_MAX
-
FOPEN_MAX
-
L_tmpnam
-
NULL
-
TMP_MAX
and SEEK_CUR, SEEK_END and SEEK_SET (used with fseek).
Types
-
FILE
-
fpos_t
-
size_t