STDBOOL(3)
π NAME π
okay so bestie, welcome to stdbool(3) β the manual page for stdbool, aka standard boolean types. That's the whole name section, but keep scrolling because <stdbool.h> is about to do its little iconic thing. π
β SYNOPSIS β
#include <stdbool.h>
π DESCRIPTION π
The <stdbool.h> header defines four macros, and honestly? It keeps things cute and minimal. Here they are, in all their main-character glory:
bool, which expands to_Bool;true, which expands to the integer constant1;false, which expands to the integer constant0; and__bool_true_false_are_defined, which expands to the constant1.
π¨ heads up, bestie: the ability to undefine and redefine the macrosbool,true, andfalseis an obsolescent feature that may be withdrawn in a future version of a standard. Like, it's giving legacy energy. Do not act surprised if a future standard snatches that ability away. π
π¦ SEE ALSO π¦
stdint(3)β go say hi, bestie, it's right there.
π STANDARDS π
The <stdbool.h> header conforms to ISO/IEC 9899:1999 (βISO C99β) and IEEE Std 1003.1-2001 (βPOSIX.1β). Slay. β¨
π HISTORY π
The <stdbool.h> header was first introduced in NetBSD 1.6. A little origin-story moment for you. π«Ά
xoxo, Debian π β March 21, 2010 β STDBOOL(3) over and out, periodt. π
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2010 The NetBSD Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms