aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/string.c2
-rw-r--r--src/string.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/string.c b/src/string.c
index 3a52ab2..31ad612 100644
--- a/src/string.c
+++ b/src/string.c
@@ -12,6 +12,8 @@
#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)
{
if (!dst)
diff --git a/src/string.h b/src/string.h
index b472e82..55df9e1 100644
--- a/src/string.h
+++ b/src/string.h
@@ -8,6 +8,7 @@
#ifndef __STRING_H__
#define __STRING_H__
+/* For details, see string_copying(7). */
char *stpecpy(char *dst, char *end, const char *src);
int string_to_int(const char *src, int *result);