Loading...
--- Libc/Libc-1725.40.4/string/FreeBSD/wcscmp.c
+++ Libc/Libc-320/string/FreeBSD/wcscmp.c
@@ -13,6 +13,10 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the University of
+ * California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
@@ -37,7 +41,7 @@
__RCSID("$NetBSD: wcscmp.c,v 1.3 2001/01/05 12:13:12 itojun Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
-__FBSDID("$FreeBSD: src/lib/libc/string/wcscmp.c,v 1.9 2009/02/03 17:58:20 danger Exp $");
+__FBSDID("$FreeBSD: src/lib/libc/string/wcscmp.c,v 1.7 2002/10/23 11:08:40 tjr Exp $");
#include <wchar.h>
@@ -45,11 +49,12 @@
* Compare strings.
*/
int
-wcscmp(const wchar_t *s1, const wchar_t *s2)
+wcscmp(s1, s2)
+ const wchar_t *s1, *s2;
{
while (*s1 == *s2++)
- if (*s1++ == '\0')
+ if (*s1++ == 0)
return (0);
/* XXX assumes wchar_t = int */
return (*(const unsigned int *)s1 - *(const unsigned int *)--s2);