Hi,

as the ILE C compiler only conforms to C89 it has no va_copy function.

I have the following code:

NEOERR *string_appendvf (STRING *str, const char *fmt, va_list ap)
{
...
va_list tmp;
va_copy((tmp), (ap));
...

but as va_copy is not available is it safe to code the following:

*tmp = *ap;

?

http://linux.die.net/man/3/va_copy

Thanx in advance.

Regards

Mihael Schmidt
Anwendungsentwicklung

Dirk Rossmann GmbH
Iserhägener Str.16
30938 Burgwedel
* +49 (05139) 898 - 4353

Handelsregister-Nr. HRB 120546, Amtsgericht Hannover
Ust-Id-Nr. DE 115055186
St.-Nr. 16 / 205 / 65401
Geschäftsführer: Dirk Roßmann, Alice Schardt-Roßmann, Roland Frobel, Klaus Praus


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 midrange.com 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].