ONC+ Developer's Guide


Booleans are important enough and occur frequently enough to warrant their own explicit type in the standard. Booleans are integers of value 0 or 1. The encoding for Booleans is the same as show in Signed Integer Encoding.

Booleans are declared as follows.

bool identifier;

This is equivalent to:

enum {FALSE = 0, TRUE = 1} identifier;