shithub: scc

ref: a0ff31c2362324edf915883b2faa324377be1b4a
dir: /src/libc/string/strcat.c/

View raw version
#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;
}