Previous: 8.1 The C Standard Library
Up: 8 Functions and Files
Next: 8.3 Direct I/O with Files
Previous Page: 8.1.2 Math Routines
Next Page: 8.2.1 Formatted Output: printf()

8.2 Formatted Input/Output

We have been using the I/O built-in functions printf() and scanf() which are the primary routines for formatted output and input in C (the ``f'' stands for formatted). We have already discussed many of the conversion specifications; we now present a more complete description of the formatted I/O functions together with examples. (While our discussion here concerns printf() and scanf(), it applies equally well to conversion specifications for fprintf() and fscanf() described in the next Section.


tep@wiliki.eng.hawaii.edu
Wed Aug 17 09:15:23 HST 1994