Chapter 17. Standard Library Functions
This chapter describes in alphabetical order the functions available in the standard ANSI C libraries. Most of the functions described here were included in the 1989 ANSI standard or in the 1990 “Normative Addendum” and are currently supported by all major compilers. The ISO/IEC 9899:1999 standard introduced several new functions, which are not yet implemented in all compilers. These are labeled “C99” in this chapter.
Each description includes the function’s purpose and return value,
the function prototype, the header file in which the function is
declared, and a brief example. For the sake of brevity, the examples do
not always show a main() function or
the #include directives indicating
the header file with the function’s declaration. When using the
functions described in this chapter, remember that you must provide a
declaration of each standard function used in your program by including
the appropriate header file. Also, any filename may also contain a
relative or absolute directory path. For more information about errors
and exceptions that can occur in standard function calls, see the
sections on the standard headers math.h, fenv.h, and errno.h in Chapter 15.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access