Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Programming in Linux _ Multi parameter functions in C

Posted by: docmur Nov 17 2008, 10:21 AM

I have a question regarding multiple parameter functions in C. If for example we rtake printf, we can pass different lenghted parameters to it

printf("");
printf("%d",num);
etc.....

How do I make a function which can take different parameters, so I don't always have to pass a static list of parameters to it

Thanks

Docmur

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)