LINUX中清空输入缓冲区最简便的方法!

#include <stdio_ext.h>

__fpurge(stdin);