C -- big if/else if/else nest