Handling Variable Argument Lists

If your program uses variable argument lists, make sure you access arguments by using the ANSI-compatible macros defined in STDARG.H:

va_arg
va_end
va_list
va_start

Use of these macros enables the same source code to correctly access arguments, regardless of the platform.

Note that you can use VARARGS.H with existing code, but because STDARGS.H is part of the ANSI C standard, it should be used for new code.