compare strings, strcmp

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Nov 18 02:27:59 AEST 1989


In article <548.nlhp3 at oracle.nl> bengsig at oracle.nl (Bjorn Engsig) writes:
>|#define  StrEq( a, b )  (*(a) == *(b) && strcmp( a, b ) == 0)  /* UNSAFE */
>Is it unsafe because of side effects of evaluating a and b twice, ...

Yes, that's what the comment means.  In the file I extracted this from
there was an explanation..



More information about the Comp.lang.c mailing list