Atomic #defines (was Re: Password checking program)
Maarten Litmaath
maart at cs.vu.nl
Sat Aug 19 00:23:13 AEST 1989
gwyn at smoke.BRL.MIL (Doug Gwyn) writes:
\In article <13569 at bloom-beacon.MIT.EDU> scs at adam.pika.mit.edu (Steve Summit) writes:
\...
\> #define ERROR (EOF-1)
\
\Don't do this. You don't know what EOF might be defined as, so
\this might not work right.
What should he use instead?
#define ERROR (-2)
... might not work either!
--
kilogram, n.: the amount of cocaine |Maarten Litmaath @ VU Amsterdam:
you can buy for $100K. |maart at cs.vu.nl, mcvax!botter!maart
More information about the Comp.lang.c
mailing list