Hacker News new | ask | show | jobs
by zanerino 3815 days ago
It's missing this link, which I previously thought was "the" co-routine de-facto standard for C before seeing all those other links: http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html

There's a link to the .h file near the bottom of the page.

That technique is what's used in protothreads and Contiki OS.