Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!husc6!harvard!topaz!bentley!kwh From: kwh@bentley.UUCP (KW Heuer) Newsgroups: net.lang.c Subject: Re: Infinite loops Message-ID: <794@bentley.UUCP> Date: Tue, 6-May-86 09:43:45 EDT Article-I.D.: bentley.794 Posted: Tue May 6 09:43:45 1986 Date-Received: Wed, 7-May-86 06:10:23 EDT References: <390@hadron.UUCP> Organization: AT&T Bell Laboratories, Liberty Corner Lines: 8 In article <390@hadron.UUCP> hadron!jsdy (Joseph S. D. Yao) writes: >BTW, given all these defines: here are some "cute" ones of mine: ... >#define streq(a,b) (strcmp(a, b) == OK) A more general mechanism is #define strrel(a,R,b) (strcmp(a, b) R 0) which allows you to write strrel(a,==,b). Some consider this to be abuse of the preprocessor.