ref: 8730d2ebb4229ca39985e459cefc8180d6ee441e
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; }