Text this: Discrete event simulation in C