Standard library header <stdbool.h> (C99)(deprecated in C23)
From cppreference.com
C
Concurrency support (C11)
Standard Library headers
<stdmchar.h> (C29)
<stdnoreturn.h> (C11*)
<tgmath.h> (C99)
<threads.h> (C11)
<uchar.h> (C11)
<wchar.h> (C95)
<wctype.h> (C95)
This header provides macros for boolean type.
Macros
Macro constants
true
(C99)(removed in C23)
(macro constant)
false
(C99)(removed in C23)
(macro constant)
__bool_true_false_are_defined
(C99)(deprecated in C23)
(macro constant)
[edit] Synopsis
#if __STDC_VERSION__ < 202311l #define bool _Bool #define true 1 #define false 0 #endif #define __bool_true_false_are_defined 1