[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


va_arg

Macro to return an argument value.

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
#include <stdarg.h>
type va_arg(va_list ap, type type);
Parameters:

Parameters for this facility are:

ap  
va_list  
A variable list  
type  
type  
The type of the argument value to be obtained  

Remarks:

The va_arg() macro returns the next argument on the function's argument list. The argument returned has the type defined by type. The ap argument must first be initialized by the va_start() macro.

Return:

The va_arg() macro returns the next argument on the function's argument list of type.

See Also:

"va_end"

"va_start"

For example of va() usage:
Refer to the example "Example of va_start() usage.".


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 16, 2000