From: Jeremy Baxter Date: Fri, 15 Mar 2024 01:07:14 +0000 (+1300) Subject: printf.3: Return the number of bytes printed, not characters X-Git-Tag: man-pages-6.7~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0fc7ee5e3d664c83bd0f4fc751ef80cf38ae1bc;p=thirdparty%2Fman-pages.git printf.3: Return the number of bytes printed, not characters From : Upon successful completion, the dprintf(), fprintf(), and printf() functions shall return the number of bytes transmitted. Closes: Reported-by: Signed-off-by: Jeremy Baxter Signed-off-by: Alejandro Colomar --- diff --git a/man3/printf.3 b/man3/printf.3 index eb152aa19..15ed75439 100644 --- a/man3/printf.3 +++ b/man3/printf.3 @@ -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