mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
180 B
10 lines
180 B
|
15 years ago
|
#include <string.h>
|
||
|
|
|
||
|
|
/* collate only by code points */
|
||
|
|
size_t strxfrm(char *dest, const char *src, size_t n)
|
||
|
|
{
|
||
|
|
size_t l = strlen(src);
|
||
|
|
if (n > l) strcpy(dest, src);
|
||
|
|
return l;
|
||
|
|
}
|