projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add fast path for normal mutexes back to pthread_mutex_lock
[oweals/musl.git]
/
src
/
string
/
wmemcmp.c
1
#include <string.h>
2
#include <wchar.h>
3
4
int wmemcmp(const wchar_t *l, const wchar_t *r, size_t n)
5
{
6
for (; n && *l==*r; n--, l++, r++);
7
return n ? *l-*r : 0;
8
}