C Programming/stdbool.h

The header stdbool.h in the C Standard Library for the C programming language contains four macros for a Boolean data type. This header was introduced in C99.

The macros as defined in the ISO C standard are :


 * bool which expands to _Bool
 * true which expands to 1
 * false which expands to 0
 * __bool_true_false_are_defined which expands to 1

which can be used in an example

which will output This will run as long as keep_going is true. Stopping!