va_start

Is a macro that starts the acquisition of arguments from a list of variable arguments.

Library:LibC
Classification:ANSI
Service:General C Services

Syntax

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

Parameters

param

(IN) Specifies a variable argument list.

previous

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

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