diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-10 01:38:32 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-10 01:38:32 +0200 |
commit | c1b01c48e457ca287631fb27ad4c553d0246d5a6 (patch) | |
tree | 51d48f4ac265333b82504c355f5059ac1a7cb388 | |
parent | test: test long CI run output (diff) | |
download | cimple-c1b01c48e457ca287631fb27ad4c553d0246d5a6.tar.gz cimple-c1b01c48e457ca287631fb27ad4c553d0246d5a6.zip |
string: add a comment
Diffstat (limited to '')
-rw-r--r-- | src/string.c | 2 | ||||
-rw-r--r-- | src/string.h | 1 |
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); |