summaryrefslogtreecommitdiff
path: root/lib/libc/string/strcpy.c
blob: 8e1dab693b20ea9b5474fdb36ef573ce93c1af5b (plain)
1
2
3
4
5
6
7
char *strcpy(char *restrict s1, const char *restrict s2)
{
	char *p = s1;
	while ((*p++ = *s2++) != '\0')
		;
	return s1;
}