shithub: scc

ref: 24e2f336e79216f6c8d91a74eb4cdf88a5749434
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;
}