Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bbn!clsib21!bhj From: bhj@clsib21.UUCP (Burt Janz) Newsgroups: comp.lang.c Subject: Re: Pet peeve #1473 Message-ID: <526@clsib21.UUCP> Date: Wed, 26-Aug-87 14:05:16 EDT Article-I.D.: clsib21.526 Posted: Wed Aug 26 14:05:16 1987 Date-Received: Fri, 28-Aug-87 06:23:01 EDT References: <9001@brl-adm.ARPA> Organization: CLSI Inc., Newtonville, MA Lines: 14 Summary: Then, what is "cpp" for? In article <9001@brl-adm.ARPA>, ultra!wayne@ames.arpa (Wayne Hathaway) writes: > >>>> #define STRERR() ((errno >=0 && errno < sys_nerr) ? \ > >>>> sys_errlist[errno] : "Unknown error") > > 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? ...works for me... Burt Janz