ref: 5fffd4ac0ac75d6ba1d8e978a9c618ede9e5f2e5 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; }