move msghdr and cmsghdr out of bits/socket.h
[musl.git] / src / string / wcsncmp.c
blob4ab32a924c4657dadd98677d4771042f120f43c8
1 #include <wchar.h>
3 int wcsncmp(const wchar_t *l, const wchar_t *r, size_t n)
5 for (; n && *l==*r && *l && *r; n--, l++, r++);
6 return n ? *l - *r : 0;