Chapter 16. The C Preprocessor and the C Library

You will learn about the following in this chapter:

  • More capabilities of the C preprocessor

  • Function-like macros and conditional compilation

  • Inline functions

  • The C library in general and some of its handy functions in particular

  • Preprocessor Directives:

    #define, #include, #ifdef

    #else, #endif, #ifndef

    #if, #elif, #line, #error, #pragma

  • Functions:

    sqrt(), atan(), atan2()

    exit(), atexit()

    assert()

    memcpy(), memmove()

    va_start(), va_arg(), va_copy(), va_end()

The C language proper is built on the C keywords, expressions, statements and the rules for using them. The ANSI C standard, however, goes beyond describing just the C language. It also describes how the C preprocessor should perform, establishes which functions ...

Get C Primer Plus, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.