musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/string/wcscmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/wcscmp.c')
-rw-r--r--src/string/wcscmp.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string/wcscmp.c b/src/string/wcscmp.c
index 26eeee70..286ec3ea 100644
--- a/src/string/wcscmp.c
+++ b/src/string/wcscmp.c
@@ -3,5 +3,5 @@
int wcscmp(const wchar_t *l, const wchar_t *r)
{
for (; *l==*r && *l && *r; l++, r++);
- return *l - *r;
+ return *l < *r ? -1 : *l > *r;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月14日 15:10:28 +0000

AltStyle によって変換されたページ (->オリジナル) /