|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: wcscasecmp.c,v 1.2 2011/06/01 19:29:48 naddy Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: wcscasecmp.c,v 1.3 2015/09/12 16:23:14 guenther Exp $ */ |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* Copyright (c) 2011 Marc Espie |
|
|
* Copyright (c) 2011 Marc Espie |
|
@ -41,6 +41,7 @@ wcscasecmp(const wchar_t *s1, const wchar_t *s2) |
|
|
/* XXX assumes wchar_t = int */ |
|
|
/* XXX assumes wchar_t = int */ |
|
|
return ((rune_t)l1 - (rune_t)l2); |
|
|
return ((rune_t)l1 - (rune_t)l2); |
|
|
} |
|
|
} |
|
|
|
|
|
DEF_WEAK(wcscasecmp); |
|
|
|
|
|
|
|
|
int |
|
|
int |
|
|
wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n) |
|
|
wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n) |
|
@ -59,3 +60,4 @@ wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n) |
|
|
} while (--n != 0); |
|
|
} while (--n != 0); |
|
|
return (0); |
|
|
return (0); |
|
|
} |
|
|
} |
|
|
|
|
|
DEF_WEAK(wcsncasecmp); |