[prev] [index] [next]

The stdio.h Library

stdio.h gives an interface for manipulating text files
  • defines a type (FILE *) to represent streams
  • defines three standard streams (stdin/stdout/stderr)
  • defines a range of operations on FILE*'s
  • operations often come in two versions:
    • one operates on specified FILE*   (e.g. fgetc())
    • other operates on standard stream   (e.g. getchar())
  • provides buffering of streams
Note:  printf(fmt,...)  =  fprintf(stdout,fmt,...)