Not logged in
Log in now
Create an account
Subscribe to LWN
Pencil, Pencil, and Pencil
Dividing the Linux desktop
LWN.net Weekly Edition for June 13, 2013
A report from pgCon 2013
Little things that matter in language design
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