aboutsummaryrefslogtreecommitdiffstats
path: root/man3/stdarg.3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-05-03 00:48:14 +0200
committerAlejandro Colomar <alx@kernel.org>2023-05-03 00:48:22 +0200
commitfe5dba139dc089eae4061fdc17f087e71f48b198 (patch)
tree54af56b1b0138bde9a21e99372ab68ce4d64564a /man3/stdarg.3
parent5a0d9ed151e6449d978fabdd654cacc17b20a235 (diff)
downloadman-pages-fe5dba139dc089eae4061fdc17f087e71f48b198.tar.gz
man*/, man.ignore.grep: srcfix; warn about blank lines
- Use the dummy character to avoid warnings in examples. - Re-enable the warning. Suggested-by: "G. Branden Robinson" <g.branden.robinson@gmail.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man3/stdarg.3')
-rw-r--r--man3/stdarg.36
1 files changed, 3 insertions, 3 deletions
diff --git a/man3/stdarg.3 b/man3/stdarg.3
index 59af5d58e4..68529802a1 100644
--- a/man3/stdarg.3
+++ b/man3/stdarg.3
@@ -261,16 +261,16 @@ with each format character based on the type.
.EX
#include <stdio.h>
#include <stdarg.h>
-
+\&
void
foo(char *fmt, ...) /* \[aq]...\[aq] is C syntax for a variadic function */
-
+\&
{
va_list ap;
int d;
char c;
char *s;
-
+\&
va_start(ap, fmt);
while (*fmt)
switch (*fmt++) {