Jump to content

stdbool.h

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Kenyon (talk | contribs) at 03:02, 4 May 2008 (link C99). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The header stdbool.h in the C Standard Library for the C programming language contains four macros. This header was introduced in C99.

The macros as defined in IEEE Std 1003.1-2001 are :

  • bool which expands to _Bool
  • true which expands to 1
  • false which expands to 0
  • __bool_true_false_are_defined which expands to 1

Programs using these macros can undefine and then redefine bool, true, and false.