I prompt for input and the scanf function is skipped over because the stdin buffer contains data. How can I flush this beforehand? Everywhere I look tells me it's system dependent and I'm on linux and ncurses is recommended. There surely has to be a way in ansi c to do this.