this header file contains four macros for a Boolean data type
#define bool _Bool #define true 1 #define false 0
#include <stdbool.h> bool is_valid = true; if (is_valid) { // do something } * w/o stdbool.h int is_valid = 1; // true if (is_valid) { // do something }
Last updated 22 hours ago