If the prefix function was set, mbed_vtracef would pass ap to vsnprintf to
determine the output length, then use ap again for the actual output,
running off the real arguments.
Create a copy of ap for the initial scan. (Thank you to C99, who added
va_copy. Would have been stuck without it.)
If the prefix function was set, mbed_vtracef would pass ap to vsnprintf to determine the output length, then use ap again for the actual output, running off the real arguments.
Create a copy of ap for the initial scan. (Thank you to C99, who added va_copy. Would have been stuck without it.)