C Questions

Bryon Lape wozniak at utkux1.utk.edu
Wed Oct 25 00:01:55 AEST 1989


	I have 2 questions concerning function definitions:  How does
one write a function so that some, not all, or the items passed can be
any type of variable at any time?  How does one write a function so that
any number of variables can be sent?

	Any example of the first question is a generic swap().  I know
that pointers to void type are used in some way, but I do not know how.
An example of the second is the printf() where the passed string will
determine the other passed variables.  This one is most likely taken
care
of at compile time, but I am talking run time.


-bryon-



More information about the Comp.lang.c mailing list