Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!netnews.upenn.edu!eniac.seas.upenn.edu!eckstein From: eckstein@eniac.seas.upenn.edu (Craig Eckstein) Newsgroups: comp.lang.c Subject: A question on variable arguments and function calls Message-ID: <39603@netnews.upenn.edu> Date: 22 Mar 91 06:20:05 GMT Sender: news@netnews.upenn.edu Reply-To: eckstein@grad1.cis.upenn.edu (Craig Eckstein) Distribution: usa Organization: University of Pennsylvania Lines: 23 Nntp-Posting-Host: eniac.seas.upenn.edu 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 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@grad1.cis.upenn.edu * * * ******************************************************************************* -- --Craig ******************************************************************************* * *