Efficient STRing CoMPares?

Doug Gwyn gwyn at smoke.brl.mil
Sun Mar 17 08:14:52 AEST 1991


In article <1991Mar15.142821 at mars.mpr.ca> stone at mars.mpr.ca (Darren Stone) writes:
>Does anyone know if there's a better (!?) way to compare
>strings than with strcmp()?
>I'm looking for any speed advantage I can get!

#define	StrEq( a, b )	(*(a) == *(b) && strcmp( a, b ) == 0)	/* UNSAFE */



More information about the Comp.lang.c mailing list