ref: 4bf1a97b6f21f2728afe47c7a9f59909b9eb84c7
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; }