summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-12-04 14:02:21 +0100
committerAlejandro Colomar <alx@kernel.org>2023-12-04 14:04:31 +0100
commit11d086270e1cc4309d8a87c8e424343fae80af70 (patch)
tree5f560443c7c9779910490c45433f3d4044fa963a
parenta5be2253f456b29cd5a32bffaf9f1ab8c4d20081 (diff)
string_copying.7: RETURN VALUE: Remove some confusing text about stpncpy(3)
That text could lead someone to think that it's possible to check truncation from the return value, but it isn't. Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man7/string_copying.79
1 files changed, 2 insertions, 7 deletions
diff --git a/man7/string_copying.7 b/man7/string_copying.7
index ad2d889af..c0ee415b4 100644
--- a/man7/string_copying.7
+++ b/man7/string_copying.7
@@ -475,14 +475,9 @@ except when truncation occurs;
if truncation occurs,
it returns a pointer to the end of the destination buffer.
.TP
-.BR stpncpy (3)
-A pointer to one after the last character
-in the destination character sequence;
-if truncation occurs,
-that pointer is equivalent to
-a pointer to the end of the destination buffer.
-.TP
.BR mempcpy (3)
+.TQ
+.BR stpncpy (3)
A pointer to one after the last character
in the destination character sequence.
.TP