Previous: 8.4 Common Errors
Up: 8 Functions and Files
Next: 8.6 Exercises
Previous Page: 8.4 Common Errors
Next Page: 8.6 Exercises

8.5 Summary

In this Chapter we have discussed various features available to the programmer in the C standard library. While we have used some of the functions in previous chapters, particularly those for I/O, we have given a more detailed description of the library, and the standard I/O routines provided there. We have seen that frequently used operations on characters for classifying or converting which we have written for ourselves in the past, are available from the library. In addition, routines for common math operations are also provided in the math library (which may not be automatically linked by the compiler). We have given a few short programs illustrating the use of some of these functions. A more complete list of available library routines is provided in Appendix .

We have also given a complete description of the formatted I/O functions, scanf() and printf() detailing the options available for formatting input and output. Finally, we have discussed variations on the I/O routines available, both for characters and formatted, which allow direct access to data in files from within a program. These new routines include getc(), putc(), fscanf(), and fprintf(), as well as functions for managing connection to the physical files: fopen() and fclose().

The full power of the C standard library is now available for future program development in later chapters.



Previous: 8.4 Common Errors
Up: 8 Functions and Files
Next: 8.6 Exercises
Previous Page: 8.4 Common Errors
Next Page: 8.6 Exercises

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