aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README4
-rw-r--r--libste.34
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