Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!bria!mike Newsgroups: comp.lang.c Subject: Re: Strings as function names (again) Keywords: function adresses pointers Message-ID: <388@bria> Date: 24 Jan 91 06:49:39 GMT References: Reply-To: bria!mike (Michael Stefanik) Organization: Briareus Corporation, Los Angeles, CA Lines: 18 In article !mpapp (Mike Papper) writes: |Again, the question, a bit more succintely is: |Can I find the adress of a function from its name? |That is, given the text string of a function, can I |get its adress to give to a pointer variable? This is a solution only if your using UNIX ... There is a function called nlist() that will read the namelist of an image, and return various and sundry tidbits of information. One of these tidbits is n_value, which is the value of the symbol. Might be helpful. -- Michael Stefanik, Systems Engineer (JOAT), Briareus Corporation UUCP: ...!uunet!bria!mike -- technoignorami (tek'no-ig'no-ram`i) a group of individuals that are constantly found to be saying things like "Well, it works on my DOS machine ..."