Path: utzoo!utgpu!watmath!iuvax!mailrus!cornell!aitken From: aitken@hati.cs.cornell.edu (William E. Aitken) Newsgroups: comp.lang.c Subject: Re: compare strings, strcmp Keywords: strcmp,strings Message-ID: <34344@cornell.UUCP> Date: 16 Nov 89 21:36:20 GMT References: <4463@blake.acs.washington.edu> <11605@smoke.BRL.MIL> <308@charyb.COM> <1632@crdos1.crd.ge.COM> Sender: nobody@cornell.UUCP Reply-To: aitken@cs.cornell.edu (William E. Aitken) Organization: Cornell Univ. CS Dept, Ithaca NY Lines: 12 In article <1632@crdos1.crd.ge.COM> davidsen@crdos1.UUCP (bill davidsen) writes: >In article <308@charyb.COM> dan@charyb.UUCP (Dan Mick) writes: >| In article <11605@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn) writes: >| >#define StrEq( a, b ) (*(a) == *(b) && strcmp( a, b ) == 0) /* UNSAFE */ >| >| Why the UNSAFE comment? This looks like utterly standard C to me... > Consider ``StrEq(p++, q++);'' for example. William E. Aitken | On Earth it is considered {uw-beaver,rochester,decvax}!cornell!aitken | ill mannered to kill your Home: (607) 273-7810 Away : (607) 255-9206 | friends while commiting suicide ============================================*============= Avon ==============