Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Son of: Building function call at runtime Message-ID: <1989Dec12.171149.24855@utzoo.uucp> Organization: U of Toronto Zoology References: <307@gtenmc.UUCP> <622@chem.ucsd.EDU> <310@gtenmc.UUCP> Date: Tue, 12 Dec 89 17:11:49 GMT In article <310@gtenmc.UUCP> stumpf@gtenmc.UUCP (Jon S. Stumpf) writes: >Here is another way to express my problem. > I have a linked list of data; > I want each element to be an argument to the error routine; > I want to call the error routine only one time for the entire list; >I am posting this in case I didn't express the problem clearly (very possible). Expressed this way, the answer is very simple: you can't do this in C in any portable way. (There is no guarantee that you can do it even in an unportable way.) C simply does not give you the ability to build argument lists yourself. There are a few kludges for awkward cases like printf, but no general primitives. -- 1755 EST, Dec 14, 1972: human | Henry Spencer at U of Toronto Zoology exploration of space terminates| uunet!attcan!utzoo!henry henry@zoo.toronto.edu