C doesn't have any built-in boolean types. What's the best way to use them in C?
From best to worse:
Option 1 (C99)
#include <stdbool.h>
Option 2
typedef enum { false, true } bool;
Option 3
typedef int bool;
enum { false, true };
Option 4
typedef int bool;
#define true 1
#define false 0
If you are undecided, go with #1!