shithub: scc

ref: 32d7bdbcc2afd6aecc33ddb49ea5668fd76ff9f6
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;
}