blob: d40be9e132a3d9898c698d9991779af3813f4ac3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
#include <string.h>
/* collate only by code points */
size_t strxfrm(char *restrict dest, const char *restrict src, size_t n)
{
size_t l = strlen(src);
if (n > l) strcpy(dest, src);
return l;
}
|