stdbool.h

Facilities for boolean integral values.

This header file defines some convenient macros for manipulating boolean values. The table below lists these macros.
Table 1. Definitions in stdbool.h
Macro Action
bool Define variables of boolean type. Expands to the built-in boolean type, Bool.
true Represent a logical true value. Expands to 1.
false Represent a logical false value. Expands to 0.
bool_true_false_are_defined Check for availability of stdbool.hfacilities. When defined, expands to 1.

The facilities in this header file are only available when the compiler is configured to compile source code for C99 (ISO/IEC 9899:1999). Refer to the Build Tools Reference for information on compiling C99 source code.