Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!linus!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, 21-Feb-84 01:08:15 EST
Article-I.D.: sri-arpa.16772
Posted: Tue Feb 21 01:08:15 1984
Date-Received: Mon, 20-Feb-84 01:20:09 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 );

...