Cryptic C (YES/NO vs. TRUE/FALSE + other thoughts)

Peter da Silva peter at baylor.UUCP
Fri Aug 30 04:33:08 AEST 1985


> #define FORCEWRITE	1
> #define NOFORCE		0
> 
> #define APPEND		1
> #define NOAPPEND	0
> 
> 	dowrite (file, FORCEWRITE, APPEND, ....);	/* call */

How about

#define FORCEWRITE 1
#define APPEND 2
#define OTHERFLAG 4
...

	dowrite(file, APPEND|OTHERFLAG);
-- 
	Peter (Made in Australia) da Silva
		UUCP: ...!shell!neuro1!{hyd-ptd,baylor,datafac}!peter
		MCI: PDASILVA; CIS: 70216,1076



More information about the Comp.lang.c mailing list