mirror of
https://github.com/fluencelabs/musl
synced 2025-06-12 22:41:37 +00:00
9 lines
162 B
C
9 lines
162 B
C
#include <string.h>
|
|
#include <wchar.h>
|
|
|
|
int wmemcmp(const wchar_t *l, const wchar_t *r, size_t n)
|
|
{
|
|
for (; n && *l==*r; n--, l++, r++);
|
|
return n ? *l-*r : 0;
|
|
}
|