2017年8月8日

linux C 文件操作之fgets()

摘要: 1. fgets(...)从标准设备读数据。 原型:fgets(s,n,stdin); 假设在控制台下,我们可以用fgets(...)替代gets(),读入键盘输入的信息,fgets()是安全的,因为不会像gets()有溢出的可能。 比如 :输入 abc fgets(s,n,stdin)也会读入n- 阅读全文

posted @ 2017-08-08 16:15 陪你赏日出 阅读(12360) 评论(0) 推荐(0)

导航