shithub: scc

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