Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Thursday, June 13, 2019
 
 

stdbool(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(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
Standard

See Also

attributes(7), standards(7)