shithub: scc

ref: 63e58ec2d143083afa060d26ac15a125ffe88609
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;
}