Boolean Operators Slighted in C
Rob McMahon
cudcv at daisy.warwick.UUCP
Wed May 7 20:22:04 AEST 1986
In article <412 at brl-smoke.ARPA> gwyn at brl.ARPA writes:
>typedef int bool; /* boolean data */
>#define false 0
>#define true 1
What about
typedef enum { false, true } bool;
?
--
UUCP: ...!mcvax!ukc!warwick!cudcv
JANET: cudcv at uk.ac.warwick.daisy
ARPA: cudcv at daisy.warwick.ac.uk
PHONE: +44 204 523037
Rob McMahon, Computer Unit, Warwick University, Coventry CV4 7AL, England
More information about the Comp.lang.c
mailing list