]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
stdarg.3: Add a note that ... in function signature means a variadic function
authorMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 12 Apr 2019 09:11:03 +0000 (11:11 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 14 Apr 2019 17:12:27 +0000 (19:12 +0200)
Egmont suggested adding this, because the string "..." appears
at several other points in the page, but just to indicate that
some text is omitted from example code.

Reported-by: Egmont Koblinger <egmont@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/stdarg.3

index 951836cbb783ae6c7b38dcf6dd154033706a1fee..d8dacec90c750d8a7ac4a43b01759a12a5f5555c 100644 (file)
@@ -316,7 +316,8 @@ with each format character based on the type.
 #include <stdarg.h>
 
 void
-foo(char *fmt, ...)
+foo(char *fmt, ...)   /* '...' is C syntax for a variadic function */
+
 {
     va_list ap;
     int d;