shithub: scc

ref: 60c8089ebc884a96d6a89c7388c579973d3e59fd
dir: /lib/c/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++)
		;
	return ret;
}