Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: July 2017
 
 

stdbool.h(3HEAD)

Name

stdbool.h, stdbool - boolean type and values

Synopsis

#include <stdbool.h>

Description

The <stdbool.h> header defines the following macros:

bool

expands to _Bool

true

expands to the integer constant 1

false

expands to the integer constant 0

__bool_true_false_are_defined

expands to the integer constant 1

An application can undefine and then possibly redefine the macros bool, true, and false.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
Standard

See Also

attributes(5), standards(5)