shithub: scc

ref: 8eae1d47c3534a3ce3902a8895e80dbb4f90375a
dir: /lib/c/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;
}