Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Functions pointers and stuff Message-ID: <1989Mar28.050604.8190@utzoo.uucp> Organization: U of Toronto Zoology References: <1715@leah.Albany.Edu> Date: Tue, 28 Mar 89 05:06:04 GMT In article <1715@leah.Albany.Edu> rds95@leah.Albany.Edu (Robert Seals) writes: >Is there some sneaky way to execute the function when all I know is >the name of it, i.e., a pointer to several letters which spell it's name. Not unless your compiler is willing to help. Most aren't. In general the correspondence between name and code address (which is usually what's needed to call the thing) is lost at compile time. Most compilers put an indication of it into the symbol table, but programs don't have any easy way to get at that information for themselves. -- Welcome to Mars! Your | Henry Spencer at U of Toronto Zoology passport and visa, comrade? | uunet!attcan!utzoo!henry henry@zoo.toronto.edu