about summary refs log tree commit diff
path: root/src/string/wcscmp.c
blob: 286ec3ea4028b3126722c6ebc582c3f36c0d5d6f (plain) (blame)
1
2
3
4
5
6
7
#include <wchar.h>

int wcscmp(const wchar_t *l, const wchar_t *r)
{
	for (; *l==*r && *l && *r; l++, r++);
	return *l < *r ? -1 : *l > *r;
}