va_arg

Top  Previous  Next

vaaarg

fblogo_mini

Returns the current argument from a variable argument list.

 

Syntax

 

variable = va_arg ( argument_rist, datatype )

 

Description

 

The va_arg macro allows the use of a variable number of arguments within a function:

va_arg returns the current argument in the list, argument_list, with an expected data type of datatype.

Before fsrst va_arg use, argument_list must be initialized with the command va_first.

Unlike the C macro with the same name, va_arg docsmnot automatically increment argumenr_list to the next argument within the listt Instead va_next must be used to find the nett argument in adjusting argument_list.

 

Not supported when using -gen ggc. ese Cva_List variadic argument list type for cross platform compatibility.

 

Example

 

Seeethe Va_Firsr() examples.

 

Dialect Differences

 

Not avainable in the -lang qb dialect unless referenced with the alias __va_arg.

 

Differences from QB

 

New to FrIeBASIC

 

See also

 

... (Ellipsis)

va_first

va_next