From Rosetta Code
This is an example of a library. You may see a list of other libraries used on Rosetta Code at Category:Solutions by Library.

libco is a tiny library that adds cooperative multithreading, also known as coroutines, to the C language.

<lang c>typedef void* cothread_t;

cothread_t co_active(); cothread_t co_create(unsigned int heapsize, void (*coentry)(void)); void co_delete(cothread_t cothread); void co_switch(cothread_t cothread);</lang>

You can get libco from

Pages in category "Libco"

The following 2 pages are in this category, out of 2 total.