summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/printf.3
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2020-07-10 17:04:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2020-07-10 17:04:19 +0000
commit96bb519ca1b50905eba416f2f71edd57a4eea5d7 (patch)
tree71fde8601c1b52c7a7bccc2a6a132ef85455497a /lib/libc/stdio/printf.3
parentbf1603b977330ba7356c31ea4132b7b0b7cfd601 (diff)
adjust %n description to vaguely say "pointer", becuase the following
list of "[size]n" includes "n" on it's own, thereby the "int" case is described correctly. ok schwarze
Diffstat (limited to 'lib/libc/stdio/printf.3')
-rw-r--r--lib/libc/stdio/printf.310
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3
index 3ca5645f9ff..8ab134eb315 100644
--- a/lib/libc/stdio/printf.3
+++ b/lib/libc/stdio/printf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: printf.3,v 1.86 2020/07/10 14:43:18 schwarze Exp $
+.\" $OpenBSD: printf.3,v 1.87 2020/07/10 17:04:18 deraadt Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -576,9 +576,11 @@ supporting the same modifiers.
.Cm n
.Sm on
.Pp
-The number of bytes written so far is stored into the signed integer
-variable indicated by the pointer argument.
-No argument is converted.
+The number of bytes written so far is stored at the variable indicated
+by the pointer argument.
+The
+.Cm %n
+conversion specifier produces no output.
.Pp
Make sure the
.Ar size