10 lines
180 B
C
10 lines
180 B
C
|
#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;
|
||
|
}
|