1 #include <string.h> 2 #include <locale.h> 3 #include "libc.h" 4 5 /* collate only by code points */ 6 // ANDROID: was __strxfrm_l in Musl 7 size_t strxfrm_l(char *restrict dest, const char *restrict src, size_t n, locale_t loc) 8 { 9 size_t l = strlen(src); 10 if (n > l) strcpy(dest, src); 11 return l; 12 } 13 14 size_t strxfrm(char *restrict dest, const char *restrict src, size_t n) 15 { 16 return strxfrm_l(dest, src, n, 0); 17 } 18 19 weak_alias(__strxfrm_l, strxfrm_l); 20