compare strings, strcmp
William E. Aitken
aitken at hati.cs.cornell.edu
Fri Nov 17 08:36:20 AEST 1989
In article <1632 at crdos1.crd.ge.COM> davidsen at crdos1.UUCP (bill davidsen) writes:
>In article <308 at charyb.COM> dan at charyb.UUCP (Dan Mick) writes:
>| In article <11605 at smoke.BRL.MIL> gwyn at 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 <aitken at cs.cornell.edu> | 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 ==============
More information about the Comp.lang.c
mailing list