Add stpcpy().

Like strcpy() but returning pointer to ending zero of copied string.
This commit is contained in:
Sven Michael Klose
2024-07-07 14:04:49 +02:00
parent 0541b65aa4
commit 581b79e0b9
2 changed files with 9 additions and 0 deletions

8
libsrc/common/stpcpy.c Normal file
View File

@@ -0,0 +1,8 @@
#include <string.h>
char * __fastcall__
stpcpy (char * dst, const char * src)
{
strcpy (dst, src);
return dst + strlen (src);
}