ref: 3035e9988fe30cd88f64c070e7b3d80a4b2c7fd5 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; }