Continuation-passing-style (CPS) in C