shithub: scc

ref: 6ce3c0bd14348efbe61ecb6b02c89d62fa1847e4
dir: /lib/c/src/strcpy.c/

View raw version
#include <string.h>
#undef strcpy

char *
strcpy(char * restrict dst, const char * restrict src)
{
	char *ret = dst;

	while (*dst++ = *src++)
		/* nothing */;
	return ret;
}