Skip to content
Commit b71a5118 authored by Arjun Shankar's avatar Arjun Shankar
Browse files

manual/stdio: Clarify putc and putwc



The manual entry for `putc' described what "most systems" do instead of
describing the glibc implementation and its guarantees.  This commit
fixes that by warning that putc may be implemented as a macro that
double-evaluates `stream', and removing the performance claim.

Even though the current `putc' implementation does not double-evaluate
`stream', offering this obscure guarantee as an extension to what
POSIX allows does not seem very useful.

The entry for `putwc' is also edited to bring it in line with `putc'.
Reviewed-by: default avatarFlorian Weimer <fweimer@redhat.com>

(cherry picked from commit 10de4a47)
parent 946006d3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment