Schmidt, Mihael <Mihael.Schmidt@...> writes:

but as va_copy is not available is it safe to code the following:
*tmp = *ap;

I do not believe this will work in all situations. A better solution would
be the following:

/* Provide our own version of va_copy() - in C99 */
#ifndef va_copy
#define va_copy(dest, src) memcpy(dest, src, sizeof(va_list))

And then the original source code can continue to use va_copy().

Scott Hanson

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].