Calling functions in C....

Tom Neff tneff at bfmny0.UUCP
Thu Aug 17 01:31:22 AEST 1989


In article <2108 at infmx.UUCP> segel at infmx.UUCP (Mike Segel) writes:
>	I want to write a C function which will be passed a set of strings.
>The C function would then use the first parameter as the function name,
>and the other parameters as the variables. 
>	I can figure out how to get the variables passed, but I cannot
>think of a way to handle the function name.

Unh-unh.  This is the sort of thing a C *interpreter* might be able to
handle, but not a compiler.  You're talking about dynamically resolving
a program symbol name at runtime (by which time, in most systems, the names
have ceased to exist).  Certain exceptional systems may offer this
feature (I am sure we will now be inundated with little twisty followups
all alike telling us about the exceptions), but mostly no.  And if it
were offered it would be plastered all over the documentation as a super
duper feature so the original posting would not have been needed. :-)

-- 
"We walked on the moon --	((	Tom Neff
	you be polite"		 )) 	tneff at bfmny0.UU.NET



More information about the Comp.lang.c mailing list