A function that executes va_start, shall also execute va_end before it returns.
Parameters
- ap
- Object of type va_list that will hold the information needed to retrieve the additional arguments with va_arg.
- paramN
- Parameter name of the last named parameter in the function definition.
Return Value
noneExample
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
The function PrintFloats takes as its first parameter, amount, the number of additional arguments, which are then read using the cstdarg macros and printed out with a specific format.
See also
| va_arg | Retrieve next argument (macro) |
| va_end | End using variable argument list (macro) |
| va_list | Type to hold information about variable arguments (type) |
| vsprintf | Print formatted variable argument list to string (function) |
