shithub: scc

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