Everything
7.4.7 Standard I/O functions

Standard I/O functions are as follows.

Table 7.9

Standard I/O Functions

Function/Macro Name

Outline

fread

Read from stream

getc

Read character from stream (same as fgetc)

fgetc

Read character from stream (same as getc)

fgets

Read one line from stream

fwrite

Write to stream

putc

Write character to stream (same as fputc)

fputc

Write character to stream (same as putc)

fputs

Output character string to stream

getchar

Read one character from standard input

gets

Read character string from standard input

putchar

Write character to standard output stream

puts

Output character string to standard output stream

sprintf

Output with format

fprintf

Output text in specified format to stream

vsprintf

Write text in specified format to character string

printf

Output text in specified format to standard output stream

vfprintf

Write text in specified format to stream

vprintf

Write text in specified format to standard output stream

sscanf

Input with format

fscanf

Read and interpret data from stream

scanf

Read and interpret text from standard input stream

ungetc

Push character back to input stream

rewind

Reset file position indicator

perror

Error processing