function returning pointer to itself

olson at batcomputer.UUCP olson at batcomputer.UUCP
Wed Jul 13 02:11:58 AEST 1988


Does the new C standard have a natural way to declare a
function that returns a pointer to itself
????

(if you are puzzled by the question, consider the problem 
 of writing a state machine where the states are indicated
 by functions.  To go from one state to another, a function
 exits, returning a pointer to the next function to be executed.
 In the C that I know, I know of no way to declare such functions.
 What does the new standard suggest?)

Todd Olson
olson at helios.tn.cornell.edu
Physics Dept/ Cornell Univ/ Ithaca NY 14853



More information about the Comp.std.c mailing list