Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!apple!usc!cs.utexas.edu!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.lang.c Subject: Re: Using vars to access structures/functions Message-ID: <2924@kappl.cs.vu.nl> Date: 21 Jul 89 17:13:14 GMT References: <329@yetti.UUCP> <10570@smoke.BRL.MIL> Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 16 gwyn@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@cs.vu.nl, mcvax!botter!maart