shithub: scc

ref: 7e4220e1c67a2049e8df31f979cc34d13d3f6938
dir: /src/libc/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;
}