🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5170

function returning pointer to itself

#5170
From: olson
Date: Tue, 12 Jul 1988 16:11
14 lines
1016 bytes
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@helios.tn.cornell.edu
Physics Dept/ Cornell Univ/ Ithaca NY 14853
Technical Details
Message-ID: <5485@batcomputer.tn.cornell.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!bellcore!faline!thumper!ulysses!andante!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!mailrus!cornell!batcomputer!olson

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!bellcore!faline!thumper!ulysses!andante!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!mailrus!cornell!batcomputer!olson
From: olson@batcomputer.UUCP
Newsgroups: comp.std.c
Subject: function returning pointer to itself
Message-ID: <5485@batcomputer.tn.cornell.edu>
Date: 12 Jul 88 16:11:58 GMT
Reply-To: olson@tcgould.tn.cornell.edu (olson)
Organization: Cornell Theory Center, Cornell University, Ithaca NY
Lines: 14