Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!mit-eddie!rutgers!att!whuts!homxb!hound!rkl1 From: rkl1@hound.UUCP (K.LAUX) Newsgroups: comp.lang.c Subject: Re: Definition of boolean Message-ID: <2924@hound.UUCP> Date: 10 Feb 89 18:29:44 GMT References: <10@dbase.UUCP> <1629@goofy.megatest.UUCP> Organization: AT&T Bell Laboratories, Holmdel Lines: 19 I have found the following to be helpful with what I call 'Logical' states: #define RESET -1 /* this is actually Tri-stated */ #define UNSET 0 #define SET 1 short flag = UNSET; ... if (flag == UNSET) { /* or == SET or == RESET */ ... } and so on... --rkl