summaryrefslogtreecommitdiff
path: root/lib/libc/string/stpcpy.c
blob: f3619557c19ab86e019093d4a1f826aeda41add1 (plain)
1
2
3
4
5
6
7
8
#include <string.h> // for stpcpy

char *stpcpy(char *restrict s1, const char *restrict s2)
{
	while ((*s1++ = *s2++))
		;
	return s1 - 1;
}