Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!hou3c!hocda!houxm!ihnp4!zehntel!dual!amd70!decwrl!decvax!harpo!seismo!hao!hplabs!sri-unix!gwyn@brl-vld From: gwyn%brl-vld@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: Re: declaring and initializing an array of pointers to functions Message-ID: <16772@sri-arpa.UUCP> Date: Tue, 28-Feb-84 01:08:15 EST Article-I.D.: sri-arpa.16772 Posted: Tue Feb 28 01:08:15 1984 Date-Received: Mon, 26-Mar-84 07:52:42 EST Lines: 15 From: Doug Gwyn (VLD/VMB) typedef int valtype; /* function return value type */ extern valtype funca(), funcb(), ... funcz(); /* the functions */ static valtype (*table[])() = /* pointers to functions */ { funca, funcb, ... funcz }; ... /* keyword # k has been recognized; call function */ value = (*table[k])( args ); ...