Using vars to access structures/functions
Maarten Litmaath
maart at cs.vu.nl
Sat Jul 22 03:13:14 AEST 1989
gwyn at smoke.BRL.MIL (Doug Gwyn) writes:
\... extern void func1(), func2();
\ struct func_pair {
\ char *func_name;
\ void *func_entry();
Ahum: void (*func_entry)();
\ } funct_table[] = {
\ { "func1", func1 },
\ { "func2", func2 },
\ };
\...
--
"Mom! Eric Newton broke the day! In 24 |Maarten Litmaath @ VU Amsterdam:
parts!" (Mike Schmitt in misc.misc) |maart at cs.vu.nl, mcvax!botter!maart
More information about the Comp.lang.c
mailing list