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
/
locale
/
strxfrm.c
1
#include <string.h>
2
3
/* collate only by code points */
4
size_t strxfrm(char *dest, const char *src, size_t n)
5
{
6
size_t l = strlen(src);
7
if (n > l) strcpy(dest, src);
8
return l;
9
}