From e0fc7ee5e3d664c83bd0f4fc751ef80cf38ae1bc Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Fri, 15 Mar 2024 14:07:14 +1300 Subject: 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 --- man3/printf.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3