diff options
author | Leah Neukirchen <leah@vuxu.org> | 2021-11-05 18:56:18 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2021-11-05 18:56:18 +0100 |
commit | 512f6213133906fc73f5dd2865ae973e4412a1f6 (patch) | |
tree | dc441210146f19c894049c5dab04007be9dc420f | |
parent | 75ea20675d012e692996bc6beae9149b0deb08b0 (diff) | |
download | libste-512f6213133906fc73f5dd2865ae973e4412a1f6.tar.gz libste-512f6213133906fc73f5dd2865ae973e4412a1f6.tar.xz libste-512f6213133906fc73f5dd2865ae973e4412a1f6.zip |
consistent end argument name
-rw-r--r-- | README | 4 | ||||
-rw-r--r-- | libste.3 | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/README b/README index 26bf455..776eb20 100644 --- a/README +++ b/README @@ -10,7 +10,7 @@ SYNOPSIS stecpy(char *dst, char *end, const char *src); char * - stecpe(char *dst, char *dstend, const char *src, const char *srcend); + stecpe(char *dst, char *end, const char *src, const char *srcend); char * stechr(const char *src, const char *end, int c); @@ -27,7 +27,7 @@ DESCRIPTION truncation, end is returned. stecpe copies the string between src and srcend to dst, but writes no - characters beyond dstend. If any characters are copied, dst will be NUL- + characters beyond end. If any characters are copied, dst will be NUL- terminated and the return value is a pointer to the NUL byte. On truncation, end is returned. diff --git a/libste.3 b/libste.3 index 24b3d4a..f81e079 100644 --- a/libste.3 +++ b/libste.3 @@ -12,7 +12,7 @@ .Ft "char *" .Fn stecpy "char *dst" "char *end" "const char *src" .Ft "char *" -.Fn stecpe "char *dst" "char *dstend" "const char *src" "const char *srcend" +.Fn stecpe "char *dst" "char *end" "const char *src" "const char *srcend" .Ft "char *" .Fn stechr "const char *src" "const char *end" "int c" .Ft "char *" @@ -44,7 +44,7 @@ and to .Fa dst , but writes no characters beyond -.Fa dstend . +.Fa end . If any characters are copied, .Fa dst will be NUL-terminated |