ParentFull threadgarethrowlands·Switch + goto is the classic way to implement a state machine in C.View on HN