shithub: scc

ref: ba40e25f97d3e1666ec3a88c9a536c7876436fba
dir: /libc/src/strcpy.c/

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

#include <string.h>

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

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