bool, true, false, __bool_true_false_are_defined

From RAD Studio
Jump to: navigation, search

Go Up to stdbool.h Index


Header File

stdbool.h


Category

Variable Types


Prototype

bool true = 1;

bool false = 0;

bool h = __bool_true_false_are_defined;


Description

The stdbool.h header file has four macros defined, which map out to the Boolean types.


Example

#include <stdio.h>
#include <stdbool.h>
int main(int , char**){
  bool t = true;
  bool f = false;
  bool h = __bool_true_false_are_defined;
  if (h) printf("foo");
  return 0;
}
POSIX Win32 ANSI C ANSI C++

+

+

+

+