Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for May 23, 2013
An "enum" for Python 3
An unexpected perf feature
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
C does not have a 'bool' type.
Posted Dec 17, 2004 10:37 UTC (Fri) by dododge (subscriber, #2870)
Actually the latest version (C99) does have such a type, but you have to include <stdbool.h>
to make it visible by that name. "bool" is implemented using a new
integer type _Bool. _Bool requires special behavior when
values are converted to it, so it can't be implemented as a simple typedef of some other
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds