Longjmping back, and back again; Coroutines in C

Karl Heuer karl at haddock.ima.isc.com
Fri Nov 24 15:05:03 AEST 1989


In article <457 at enea.se> jerker at helios.se (Jerker W}gberg) writes:
>I am trying to implement coroutines using plain C.  My application is not
>time critical, so there is no need for speed, being portable is far more
>important.

The portable way to implement coroutines in C is analogous to the portable way
to implement while-loops in Fortran.  You emulate them with goto statements.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list