From c1b01c48e457ca287631fb27ad4c553d0246d5a6 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 10 Jul 2023 01:38:32 +0200 Subject: string: add a comment --- src/string.c | 2 ++ src/string.h | 1 + 2 files changed, 3 insertions(+) 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 #include +/* 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); -- cgit v1.2.3