toaruos/libc/wchar/wcscmp.c
2018-06-25 15:45:32 +09:00

7 lines
155 B
C

#include <wchar.h>
int wcscmp(const wchar_t *l, const wchar_t *r) {
for (; *l == *r && *l; l++, r++);
return *(unsigned int *)l - *(unsigned int *)r;
}