An exercise in implementing generators in C using setjmp() and longjmp().