]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
string_copying.7: RETURN VALUE: Remove some confusing text about stpncpy(3)
authorAlejandro Colomar <alx@kernel.org>
Mon, 4 Dec 2023 13:02:21 +0000 (14:02 +0100)
committerAlejandro Colomar <alx@kernel.org>
Mon, 4 Dec 2023 13:04:31 +0000 (14:04 +0100)
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>
man7/string_copying.7

index ad2d889af25d6fb47695b46788ab892902e8aaed..c0ee415b4f83f251c92970ab029fc0a8b71ec0fe 100644 (file)
@@ -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