summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libc/stdio/putc.310
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libc/stdio/putc.3 b/lib/libc/stdio/putc.3
index 2476f5f..e149630 100644
--- a/lib/libc/stdio/putc.3
+++ b/lib/libc/stdio/putc.3
@@ -75,8 +75,14 @@ to the output stream pointed to by
.Pp
The
.Fn putc
-function acts essentially identically to
-.Fn fputc .
+macro acts essentially identically to
+.Fn fputc ,
+but is a macro that expands in-line.
+It may evaluate
+.Fa stream
+more than once, so arguments given to
+.Fn putc
+should not be expressions with potential side effects.
.Pp
The
.Fn putchar
OpenPOWER on IntegriCloud