diff options
Diffstat (limited to 'man3/stdarg.3')
| -rw-r--r-- | man3/stdarg.3 | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/man3/stdarg.3 b/man3/stdarg.3 index d8dacec90c..d859e0283a 100644 --- a/man3/stdarg.3 +++ b/man3/stdarg.3 @@ -253,44 +253,8 @@ macros conform to C89. C99 defines the .BR va_copy () macro. -.SH NOTES -These macros are -.I not -compatible with the historic macros they replace. -A backward-compatible version can be found in the include file -.IR <varargs.h> . -.PP -The historic setup is: -.PP -.in +4n -.EX -#include <varargs.h> - -void -foo(va_alist) - va_dcl -{ - va_list ap; - - va_start(ap); - while (...) { - ... - x = va_arg(ap, type); - ... - } - va_end(ap); -} -.EE -.in -.PP -On some systems, -.I va_end -contains a closing \(aq}\(aq matching a \(aq{\(aq in -.IR va_start , -so that both macros must occur in the same function, and in a way -that allows this. .SH BUGS -Unlike the +Unlike the historical .B varargs macros, the .B stdarg |
