diff options
Diffstat (limited to 'system/lib/libc/musl/src/string/wcsncmp.c')
-rw-r--r-- | system/lib/libc/musl/src/string/wcsncmp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/system/lib/libc/musl/src/string/wcsncmp.c b/system/lib/libc/musl/src/string/wcsncmp.c new file mode 100644 index 00000000..4ab32a92 --- /dev/null +++ b/system/lib/libc/musl/src/string/wcsncmp.c @@ -0,0 +1,7 @@ +#include <wchar.h> + +int wcsncmp(const wchar_t *l, const wchar_t *r, size_t n) +{ + for (; n && *l==*r && *l && *r; n--, l++, r++); + return n ? *l - *r : 0; +} |