Listing 15 Simulates the C++ Boolean data type

// bool.h
#if !defined(BOOL_H)
#define BOOL_H

typedef int bool;
const bool true = 1;
const bool false = 0;

#endif

/* End of File */