Efficient STRing CoMPares?

Robert Konigsberg consp06 at bingsuns.cc.binghamton.edu
Tue Mar 19 03:42:07 AEST 1991


Somebody said part of the problem with string comparisons is that if
the most of the strings are equivelant, there will be alot of
processor time.  Wouldn't it be good then, to include in the macro,
something to compare the actual POINTERS?  If the pointers are the
same then the two strings have no CHOICE but to be equivelant.  This
would really cut down the time under certain situations.

			-Rob Konigsberg



More information about the Comp.lang.c mailing list