Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site columbia.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!columbia!eppstein From: eppstein@columbia.UUCP (David Eppstein) Newsgroups: net.lang.c Subject: Re: How do I declare... Message-ID: <969@columbia.UUCP> Date: Sat, 24-Aug-85 20:08:06 EDT Article-I.D.: columbia.969 Posted: Sat Aug 24 20:08:06 1985 Date-Received: Mon, 26-Aug-85 01:20:33 EDT References: <368@persci.UUCP> Reply-To: eppstein@columbia.UUCP (David Eppstein) Organization: Columbia University Lines: 9 In article <368@persci.UUCP> roman@persci.UUCP writes: > Either I'm missing the perfectly obvious or I've found something > that's impossible to declare in C, even though it makes sense. I'm > trying to implement a simple finite state machine with states > represented by C functions. Each state function would accept some > input value as an argument and return a pointer to the function > implementing the next state... It works if you imbed them in a struct. Kind of ugly though.