Preserving pointer to functions

Paul Rensing rensing at pixel.SLAC.Stanford.EDU
Wed Apr 24 16:20:46 AEST 1991


I have an interesting problem. I want to write to a file a structure which
contains pointers to functions and be able to read it back, in another
run. I want the connection to be maintained across the runs. 

Maybe if I examine the symbol table and save the name of the function,
I could search the table when I read it in. Is there some way to look
into the symbol table? I would prefer a machine-dependent method but I
will take what I can get.

Paul Rensing
rensing at pixel.slac.stanford.edu



More information about the Comp.lang.c mailing list