]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
printf.3: Return the number of bytes printed, not characters
authorJeremy Baxter <jtbx@disroot.org>
Fri, 15 Mar 2024 01:07:14 +0000 (14:07 +1300)
committerAlejandro Colomar <alx@kernel.org>
Fri, 15 Mar 2024 23:29:06 +0000 (00:29 +0100)
From <https://pubs.opengroup.org/onlinepubs/9699919799/functions/printf.html>:

    Upon successful completion, the dprintf(), fprintf(), and printf()
    functions shall return the number of bytes transmitted.

Closes: <https://bugzilla.kernel.org/show_bug.cgi?id=218600>
Reported-by: <quirin.blaeser@freenet.de>
Signed-off-by: Jeremy Baxter <jtbx@disroot.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man3/printf.3

index eb152aa19a023002c0dd55ac28c2a369081549ca..15ed7543914aacae49fc0fcff67180c664d007f1 100644 (file)
@@ -875,7 +875,7 @@ No argument is converted.
 The complete conversion
 specification is \[aq]%%\[aq].
 .SH RETURN VALUE
-Upon successful return, these functions return the number of characters
+Upon successful return, these functions return the number of bytes
 printed (excluding the null byte used to end output to strings).
 .P
 The functions