ref: 5b9d9b6057b4ebdb7d4590c849607f6d0765c00c dir: /lib/c/strcat.c/
#include <string.h> #undef strcat char * strcat(char * restrict dst, const char * restrict src) { char *ret = dst; while (*dst) ++dst; while (*dst++ = *src++) ; return ret; }