ref: 50d3a85c81eabcd5dcc9cb7f6da8380b07acf65a
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; }