Linux c 清除标准输入缓存数据
linux_c吧
全部回复
仅看楼主
level 1
946564016 楼主
setbuf(stdin, NULL);
setvbuf(stdin, NULL, _IONBF, 0)都没用,还有其他什么方法么
2014年09月03日 04点09分 1
level 1
这个简单。看看我的博客里写的一些范例
http://blog.sina.com.cn/u/1445757403
2015年05月05日 10点05分 2
level 1
flush(STDIN_FILENO)
2015年05月23日 09点05分 3
1