va_start

Starts the acquisition of arguments from a list of variable arguments (macro)

Local Servers:nonblocking
Remote Servers:N/A
Classification:ANSI
Service:Variable Length Argument List

Syntax

  #include <stdarg.h>  
   
  void va_start  (  
     va_list   param,   
     previous);
  

Parameters

param
(IN) Specifies a variable argument.
previous
(IN) Specifies the previous argument being passed to the called function.

Return Values

None

Remarks

The macro va_start is used to start the acquisition of arguments from a list of variable arguments. The param argument is used by the va_arg macro to locate the current acquired argument. The previous argument is the argument that immediately precedes the "..." notation in the original function definition. It must be used with the associated macros va_arg and va_end. See the description of va_arg for complete documentation on these macros.

See Also

va_arg, va_end, vfprintf, vprintf (Single and Intra-File Management), vsprintf