shithub: scc

ref: 07c3fc899a4788187f52b99961c7ae1777201d5b
dir: /lib/c/string/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;
}