I would like to know if it is possible to copy the va_list stack. I know for solaris there is a va_copy extension of the stdarg.h, but I am looking for a solution that is available for other platforms.
The va_list stack needs to be copied because the vprintf statement will be processing at a delay. Therefore I need to temporary copied the string format as well as the va_list stack within a separate structure to be used later. If coping is not done, then the va_list stack would be reused by the system when another va_start() is called. ( and this is happening!! )