shithub: scc

ref: 3d3ef19b6beb4639c7471dde143b06500bf8568f
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;
}