shithub: scc

ref: 8b178526d17c09010b94b2c6655c0c98648a2f68
dir: /lib/c/src/strcpy.c/

View raw version
/* See LICENSE file for copyright and license details. */

#include <string.h>
#undef strcpy

char *
strcpy(char * restrict dst, const char * restrict src)
{
	char *ret = dst;

	while (*dst++ = *src++)
		/* nothing */;
	return ret;
}