aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2023-12-30 23:22:59 +0100
committerEgor Tensin <egor@tensin.name>2023-12-30 23:22:59 +0100
commit3d878bfc3ed733ca3b29ecc2ff50a96dfb47ca06 (patch)
tree4a4e02df0539c62c6758d2d4802433aab03abe69 /src/string.c
parenttest/py/ -> test/src/ (diff)
downloadcimple-3d878bfc3ed733ca3b29ecc2ff50a96dfb47ca06.tar.gz
cimple-3d878bfc3ed733ca3b29ecc2ff50a96dfb47ca06.zip
string: stpecpy -> string_append
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/string.c b/src/string.c
index f2010c6..b610e2f 100644
--- a/src/string.c
+++ b/src/string.c
@@ -12,9 +12,9 @@
#include <stdlib.h>
#include <string.h>
-/* This is not provided by glibc; however, it does provide a possible
- * implementation in string_copying(7), which I copied from. */
-char *stpecpy(char *dst, char *end, const char *src)
+/* glibc calls this stpecpy; it's not provided by glibc; however, it does
+ * provide a possible implementation in string_copying(7), which I copied from. */
+char *string_append(char *dst, char *end, const char *src)
{
if (!dst)
return NULL;