From ec3c37d1d40d7b288584c234f4c3e7a600f2353d Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 3 Apr 2025 12:30:34 -0400 Subject: new libs --- lib/stpcpy.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lib/stpcpy.c (limited to 'lib/stpcpy.c') diff --git a/lib/stpcpy.c b/lib/stpcpy.c new file mode 100644 index 0000000..1586a37 --- /dev/null +++ b/lib/stpcpy.c @@ -0,0 +1,9 @@ +#include + +char *stpcpy(char *restrict dest, const char *restrict src) +{ + char *d = dest; + for (; (*d = *src); d++, src++) + ; + return d; +} -- cgit v1.2.3-freya