ref: 3e2b9fc5817172876d54d82e4ddc7df78b051212 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; }