Zilog Z80380 User Manual
Page 90
Advertising
Library Functions
Run Time Environment
4–26
UM004001-COR1103
•
The va_arg macro does the following:
– Retrieves a value of type from the location given by arg_ptr
– Increments arg_ptr to point to the next argument in the list, using the size of type
to determine where the next argument starts
– The va_arg macro can be used any number of times within the function to retrieve
arguments from the list.
– After all arguments have been retrieved, va_end resets the pointer to NULL.
Return Value
The va_arg macro returns the current argument va_start and va_end do not return values.
Advertising