mjgaudette
asked on
use of va_arg
Can anyone explain how va_arg works and give an example?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
yes that is correct, you tell va_start the last fixed parameter(before the optional parameters start). You then tell va_arg the type of variable to get, so it knows the size on the stack. I do not use these macros much, but they do come in handy.
ASKER