variable number of strings passed t

mcdonald at uxe.cso.uiuc.edu mcdonald at uxe.cso.uiuc.edu
Thu Oct 27 00:49:00 AEST 1988


>And so on.  Use <varargs.h> or <stdarg.h>
>(current practice and ANSI-C-draft practise respectively); they are the
>*only* portable way to do this.
Oh come on now. How about mallocing up enough space to put an array
of pointers to the strings in memory and passing a pointer to that array?
That is portable and avoids varargs or stdarg.



More information about the Comp.lang.c mailing list