Yes indeed, fflush() is undefined on input buffers.

But I don't entirely see where you would need many if-elses in the case of a strike. You should tell us what you intent to happen after a strike, then we might be able to clue you in.