Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart
From: maart@cs.vu.nl (Maarten Litmaath)
Newsgroups: comp.lang.c
Subject: Re: Atomic #defines (was Re: Password checking program)
Message-ID: <3019@solo1.cs.vu.nl>
Date: 18 Aug 89 14:23:13 GMT
References: <15257@duke.cs.duke.edu> <652@lakart.UUCP> <13569@bloom-beacon.MIT.EDU> <10765@smoke.BRL.MIL>
Organization: V.U. Informatica, Amsterdam, the Netherlands
Lines: 16

gwyn@smoke.BRL.MIL (Doug Gwyn) writes:
\In article <13569@bloom-beacon.MIT.EDU> scs@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@cs.vu.nl, mcvax!botter!maart