shithub: scc

ref: db6a88b11ded5bd3de7c6898e6ad08c6be74a45d
dir: /lib/c/src/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++)
		/* nothing */;
	return ret;
}