ref: 90587cbec9a3ffba0aee86c7be5503447f711f6e
dir: /lib/c/strxfrm.c/
#include <string.h> #undef strxfrm size_t strxfrm(char * restrict dst, const char * restrict src, size_t n) { size_t len = strlen(src); if (len < n) strcpy(dst, src); return len; }