Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/dinkum_en/c99/stdbool.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/dinkum_en/c99/stdbool.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/dinkum_en/c99/stdbool.html on line 4

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/dinkum_en/c99/stdbool.html on line 4
[Previous] [Contents] [Next]

<stdbool.h>

[Added with C99]


Include the standard header <stdbool.h> to define a type and several macros suitable for writing Boolean tests. The standard header <stdbool.h> is available even in a freestanding implementation.

    /* MACROS */
#define bool _Bool [keyword in C++]
#define false 0 [keyword in C++]
#define true 1 [keyword in C++]
#define __bool_true_false_are_defined 1

    /* TYPES */
typedef i-type bool; [keyword in C++]

__bool_true_false_are_defined

#define __bool_true_false_are_defined 1

The macro yields the decimal constant 1.

bool

#define bool _Bool [keyword in C++]

The macro yields the type _Bool.

false

#define false 0 [keyword in C++]

The macro yields the decimal constant 0.

true

#define true 1 [keyword in C++]

The macro yields the decimal constant 1.


See also the Table of Contents and the Index.

Copyright © 2000-2002 by P.J. Plauger. All rights reserved.

[Previous] [Contents] [Next]

Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/dinkum_en/c99/stdbool.html on line 79

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/dinkum_en/c99/stdbool.html on line 79