shithub: scc

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