Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!jvnca!njitsc1!argus!ken From: ken@argus.UUCP (Kenneth Ng) Newsgroups: comp.lang.c Subject: Re: Pet peeve #1473 Message-ID: <1021@argus.UUCP> Date: Fri, 28-Aug-87 14:29:45 EDT Article-I.D.: argus.1021 Posted: Fri Aug 28 14:29:45 1987 Date-Received: Sun, 30-Aug-87 02:02:33 EDT References: <9001@brl-adm.ARPA> <526@clsib21.UUCP> Organization: NJ Instit. of Tech: TEIES Project Lines: 17 In article <526@clsib21.UUCP>, bhj@clsib21.UUCP (Burt Janz) writes: > In article <9001@brl-adm.ARPA>, ultra!wayne@ames.arpa (Wayne Hathaway) writes: > > >>>> #define STRERR() ((errno >=0 && errno < sys_nerr) ? \ > > What's wrong with this? Simply that it doesn't tell you what the > > unknown value of errno *IS*! When I first saw code like this in > > Wayne Hathaway ultra!wayne@Ames.ARPA > Hmmmm... ever heard of running cpp by itself, grokking the output, > and seeing where the macros are expanded? > Burt Janz But if the software was properly written I wouldn't have to do this. Kenneth Ng: Post office: NJIT - CCCC, Newark New Jersey 07102 uucp !ihnp4!allegra!bellcore!argus!ken *** NOT ken@bellcore.uucp *** bitnet(prefered) ken@orion.bitnet