va_next
Returns a pointer to the next argument in a variable argument list
Syntax
`
Argument_Pointer = va_next (Argument_List, datatype )
`
Description
The `va_next` macro points to the next argument within the list `Argument_List` of the type `datatype`.
Example
`
Function Avg cdecl (Count As Integer, ... ) As Double
Dim ARG As Any Ptr
Dim SUM As Double = 0
Dim i As Integer
ARG = va_first()
For i = 1 To COUNT
SUM += va_arg(ARG, Double)
ARG = va_next(ARG,Double)
Next i
Return SUM/COUNT
End Function
Print AVG (4, 3.4,5.0,3.2,4.1)
Print AVG (2, 65.2,454.65481)
Sleep
`
The output would look like:

    3.925
    259.927405

Dialect Differences

- Not available in the -lang qb dialect unless referenced with the alias `__Va_next`.

Differences from QB

- New to FreeBASIC

See also

- ... (Ellipsis)
- `va_arg`
- `va_first`