[c] How to clear input buffer in C?