How do I declare...

David Eppstein eppstein at columbia.UUCP
Sun Aug 25 10:08:06 AEST 1985


In article <368 at persci.UUCP> roman at 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.



More information about the Comp.lang.c mailing list