Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!dayton!ems!mark From: mark@ems.UUCP (Mark H. Colburn) Newsgroups: comp.lang.c Subject: Re: A question about pointers to functions. Message-ID: <118@ems.UUCP> Date: Sat, 17-Jan-87 16:23:09 EST Article-I.D.: ems.118 Posted: Sat Jan 17 16:23:09 1987 Date-Received: Sun, 18-Jan-87 00:47:31 EST References: <3460@amd.UUCP> <1508@cit-vax.Caltech.Edu> Sender: news@ems.UUCP Reply-To: mark@ems.UUCP (Mark H. Colburn) Organization: EMS/McGraw-Hill, Eden Pairie, MN Lines: 21 In article <1508@cit-vax.Caltech.Edu> trent@cit-vax.UUCP (Ray Trent) writes: >Question: How do you declare an array of pointers-to-void-functions, and >is it possible to initialize such an array? (with the array initialization >technique {arrel1, arrel2, ...}) Try the folowing: void func1(), func2(), func3(), func4(); void (*fnarray[])() = { func1, func2, func3, func4 }; This will give you an array of pointers to functions returning a void type that has been initialzed with the pointers to func1, func2, func3 and func4. I think that this is what you are looking for. -- Mark H. Colburn UUCP: {rutgers|amdahl|ihnp4}!{dayton|meccts}!ems!mark EMS/McGraw-Hill ATT: (612) 829-8200 9855 West 78th Street Eden Prairie, MN 55344