summaryrefslogtreecommitdiff
path: root/wcsmbs/wmemcmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs/wmemcmp.c')
-rw-r--r--wcsmbs/wmemcmp.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/wcsmbs/wmemcmp.c b/wcsmbs/wmemcmp.c
index f96cad9c0e..8d04148466 100644
--- a/wcsmbs/wmemcmp.c
+++ b/wcsmbs/wmemcmp.c
@@ -1,6 +1,6 @@
/* Copyright (C) 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
-Contributed by Ulrich Drepper, <drepper@gnu.ai.mit.edu>
+Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1996.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
@@ -26,25 +26,25 @@ wmemcmp (s1, s2, n)
const wchar_t *s2;
size_t n;
{
- register uwchar_t c1;
- register uwchar_t c2;
+ register wint_t c1;
+ register wint_t c2;
while (n >= 4)
{
- c1 = (uwchar_t) s1[0];
- c2 = (uwchar_t) s2[0];
+ c1 = (wint_t) s1[0];
+ c2 = (wint_t) s2[0];
if (c1 - c2 != 0)
return c1 - c2;
- c1 = (uwchar_t) s1[1];
- c2 = (uwchar_t) s2[1];
+ c1 = (wint_t) s1[1];
+ c2 = (wint_t) s2[1];
if (c1 - c2 != 0)
return c1 - c2;
- c1 = (uwchar_t) s1[2];
- c2 = (uwchar_t) s2[2];
+ c1 = (wint_t) s1[2];
+ c2 = (wint_t) s2[2];
if (c1 - c2 != 0)
return c1 - c2;
- c1 = (uwchar_t) s1[3];
- c2 = (uwchar_t) s2[3];
+ c1 = (wint_t) s1[3];
+ c2 = (wint_t) s2[3];
if (c1 - c2 != 0)
return c1 - c2;
s1 += 4;
@@ -54,8 +54,8 @@ wmemcmp (s1, s2, n)
if (n > 0)
{
- c1 = (uwchar_t) s1[0];
- c2 = (uwchar_t) s2[0];
+ c1 = (wint_t) s1[0];
+ c2 = (wint_t) s2[0];
if (c1 - c2 != 0)
return c1 - c2;
++s1;
@@ -64,8 +64,8 @@ wmemcmp (s1, s2, n)
}
if (n > 0)
{
- c1 = (uwchar_t) s1[0];
- c2 = (uwchar_t) s2[0];
+ c1 = (wint_t) s1[0];
+ c2 = (wint_t) s2[0];
if (c1 - c2 != 0)
return c1 - c2;
++s1;
@@ -74,8 +74,8 @@ wmemcmp (s1, s2, n)
}
if (n > 0)
{
- c1 = (uwchar_t) s1[0];
- c2 = (uwchar_t) s2[0];
+ c1 = (wint_t) s1[0];
+ c2 = (wint_t) s2[0];
if (c1 - c2 != 0)
return c1 - c2;
}