Path: utzoo!mnetor!tmsoft!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!elroy.jpl.nasa.gov!jato!jdickson From: jdickson@jato.jpl.nasa.gov (Jeff Dickson) Newsgroups: comp.sys.amiga.programmer Subject: Sharing code in 'C' Message-ID: <1991Feb20.181043.24917@jato.jpl.nasa.gov> Date: 20 Feb 91 18:10:43 GMT References: <11487@uhccux.uhcc.Hawaii.Edu> Reply-To: jdickson@jato.Jpl.Nasa.Gov (Jeff Dickson) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 16 Hi. I'm looking to share functions in one program that remains resident (handler) with other programs. A way that I thought up: Program A has a pointer to function (p2f *)() or however it is declared. I have a cheat sheet for such things at home. Program A solicits program B which forks over the address of a particular function. Program A assigns the pointer to function to that address. How does this sound? Jeff