Son of: Building function call at runtime
Henry Spencer
henry at utzoo.uucp
Wed Dec 13 04:11:49 AEST 1989
In article <310 at gtenmc.UUCP> stumpf at 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 at zoo.toronto.edu
More information about the Comp.lang.c
mailing list