shithub: scc

ref: 569af2fa5e0dfaa663e64f852fc50ecddb885af3
dir: /lib/c/src/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++)
		/* nothing */;
	return ret;
}