A question on variable arguments and function calls
Craig Eckstein
eckstein at eniac.seas.upenn.edu
Fri Mar 22 16:20:05 AEST 1991
One part of the system I am currently writing is a "generalized call function."
It will be passed the function to be called and a variable list of arguments,
as well as other parameters.
Has anyone written any similar systems? or have any tips on the best way to
approach this? A particular concern of mine is how to read the arguments.
The conventional manner using <stdarg.h> appears to need to know the types
of possible arguments at compile time, which is not feasible in my case. Is
there a way to read in the arguments with the argument type stored in some
data structure?
--Craig
*******************************************************************************
* *
* All statements are the sole opinion of eckstein at grad1.cis.upenn.edu *
* *
*******************************************************************************
--
--Craig
*******************************************************************************
* *
More information about the Comp.lang.c
mailing list