Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.lang.c Subject: Re: more on TRUE and FALSE (side-comment) Message-ID: <18292:Sep2203:27:3090@kramden.acf.nyu.edu> Date: 22 Sep 90 03:27:30 GMT References: <181@thor.UUCP> <14084:Sep2105:38:0890@kramden.acf.nyu.edu> <18097@haddock.ima.isc.com> Organization: IR Lines: 11 In article <18097@haddock.ima.isc.com> karl@kelp.ima.isc.com (Karl Heuer) writes: > In article <14084:Sep2105:38:0890@kramden.acf.nyu.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes: [ incorrectly ] > >#define STREQ(a,b) ( *(a) == *(b) && *(a) && !strcmp((a)+1, (b)+1) ) > #define STREQ(a,b) ( *(a) == *(b) && !(*(a) && strcmp((a)+1, (b)+1)) ) Yes, you're right. Sorry. Thanks also to Peter Montgomery for pointing this out. In any case it's better than the original macro, whether strcmp is inlined or not. ---Dan