Date: Sat, 14 Sep 1996 18:20:46 -0400 From: Dan Cross <cross@math.psu.edu> To: Wolfram Schneider <wosch@cs.tu-berlin.de> Cc: current@freebsd.org Subject: Re: str*cmp Message-ID: <199609142220.SAA02210@augusta.math.psu.edu> In-Reply-To: Your message of "Sat, 14 Sep 1996 21:43:43 %2B0200." <199609141943.VAA02898@campa.panke.de>
next in thread | previous in thread | raw e-mail | index | archive | help
> int > strcmp(s1, s2) > register const char *s1, *s2; > { > while (*s1 == *s2++) > if (*s1++ == 0) > ^^^^^^^^^^ > should be (*s1++ == '\0') '\0' == 0. - Dan C.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609142220.SAA02210>