shithub: scc

ref: 8db36cf9b7f61d5dcd4af5324a1cc1c68dc7ed30
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;
}