blob: e00583e2f8a559d1fd191688e44226de87c773d9 [file] [log] [blame]
#include "libc.h"
#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;
}