shithub: scc

ref: 620493c9bdc92f1d4309f1b6bbf9c23f2000aecb
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;
}