C <stdio.h>
The stdio.h header file declares functions that deal with standard input and output. One of these functions, fdopen(), is supported only in a POSIX program.
Following are the functions defined in the header stdio.h:
Name | Description | Name | Description |
---|---|---|---|
fclose() | Close a stream | fprintf() | Print formatted output. |
clearerr() | Clear indicators on a stream | printf() | Print formatted output. |
feof() | Test end-of-file indicator on a stream | sprintf() | Print formatted output. |
ferror() | Test error indicator on a stream | vfprintf() | Format output of a stdarg argument list. |
fflush() | Flush a stream | vprintf() | Format output of a stdarg argument list. |
fgetpos() | Get current file position information. | vsprintf() | Format output of a stdarg argument list. |
fopen() | Open a stream. | fscanf() | Convert formatted input. |
fread() | Binary input. | scanf() | Convert formatted input. |
freopen() | Open a stream. | sscanf() | Convert formatted input. |
fseek() | Reposition a file-position indicator in a stream. | fgetc() | Get a byte from a stream. |
fsetpos() | Set current file position. | fgets() | Get a string from a stream. |
ftell() | Return a file offset in a stream. | fputc() | Put a byte on a stream. |
fwrite() | Binary output. | fputs() | Put a string on a stream. |
remove() | Remove a file. | getc() | Get a byte from a stream. |
rename() | Rename file. | getchar() | Get a byte from a stdin stream. |
rewind() | Reset the file position indicator in a stream. | gets() | Get a string from a stdin stream. |
setbuf() | Assign buffering to a stream. | putc() | Put a byte on a stream. |
setvbuf() | Assign buffering to a stream. | putchar() | Put a byte on a stdout stream. |
tmpfile() | Create a temporary file. | puts() | put a string on standard output. |
tmpnam() | Create a name for a temporary file. | ungetc() | Push byte back into input stream. |
perror() | Write error messages to standard error. |
Next C Programming: C fclose()
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics