Thanks John:
  I had completely forgotten about va_args. 

This helps
Thanks.




--- In [email protected], "John Matthews" <[EMAIL PROTECTED]> wrote:
>
> --- In [email protected], "mikejd42" <mikejd42@> wrote:
> >
> > I have a need to pass a variable number of arguments to a function
> in "C".
> > 
> > Is there a way to do something like this
> > 
> > function( argc, argv )
> > int  argc;
> > char *argv[];
> > {
> > }
> 
> FYI to write a function that takes a variable number of arguments in
> the way that printf() does, use the stdarg.h macros:
> http://en.wikipedia.org/wiki/Stdarg.h
>


Reply via email to