stdbool.h(7POSIX)
π¦ stdbool.h(7POSIX) β like, the boolean header bestie π
POSIX Programmer's Manual β¨ (yep that's the manual name, we're in the POSIX corner of the man page universe, not the Linux one)
πΈ PROLOG πΈ
okay so first things first, bestie, real talk π«Ά β this manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (so like, go check the corresponding Linux manual page for the Linux behavior, fr fr), or honestly? the interface might just not be implemented on Linux at all. π
β¨ NAME β¨
stdbool.h β boolean type and values π
like, that's it. that's the whole vibe. booleans. the true/false girlies. π
π SYNOPSIS π
#include <stdbool.h>
that's the whole thing, no cap. one include and you're in. π
π§ DESCRIPTION π§
okay so the functionality described on this reference page is aligned with the ISO C standard. And listen β any conflict between the requirements described here and the ISO C standard is unintentional, it's giving honest mistake energy π. This volume of POSIX.1β2017 defers to the ISO C standard. periodt.
The <stdbool.h> header shall define the following macros:
boolβ expands to_Bool. yes literally just_Bool, that's the whole glow-up πtrueβ expands to the integer constant1. slay β¨falseβ expands to the integer constant0. the other icon π__bool_true_false_are_definedβ expands to the integer constant1. yes bestie that's a real macro name, she's long but she's iconic, iykyk πΈ
An application may undefine and then possibly redefine the macros bool, true, and false. π (more on this in FUTURE DIRECTIONS, and bestie... it's giving warning)
The following sections are informative. (aka: the chill sections, not the rules sections π¦)
π APPLICATION USAGE π
None. π
like literally none. nothing to say. no notes. a whole section of silence, and honestly? respect. π
π RATIONALE π
None. π
again. nothing. the committee said "no thoughts, head empty" and moved on. iconic behavior ngl. β¨
π FUTURE DIRECTIONS π
okay this is the part where we get serious for a sec, bestie. π«Ά
The ability to undefine and redefine the macros bool, true, and false is an obsolescent feature and may be removed in a future version.
so like. it still works (for now). but it's on the way out. do not build your whole personality on redefining true, that's not main character energy, that's deprecated energy. π
β SEE ALSO β
None. π
nothing else to link. it's a standalone queen. π
π COPYRIGHT π
okay legal bestie moment, gotta say the whole thing fr fr π:
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
and that's the whole page bestie!! π this diva came to you from the fine people at IEEE and The Open Group, dated 2017, filed under stdbool.h(7POSIX) β mwah, go include your header, stay boolean, and don't redefine true unless you're feeling chaotic πβ¨π¦
π¦ where this page comes from
- debian bookworm: manpages-posix-dev 2017a-2 Β· Other
- debian trixie: manpages-posix-dev 2017a-2 Β· Other
- ubuntu jammy: manpages-posix-dev 2017a-2 Β· Other
- ubuntu noble: manpages-posix-dev 2017a-2 Β· Other
- ubuntu resolute: manpages-posix-dev 2017a-2build1 Β· Other
- ubuntu stonking: manpages-posix-dev 2017a-2.1 Β· Other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms