Chinaunix首页 | 论坛 | 博客
  • 博客访问: 26065
  • 博文数量: 3
  • 博客积分: 93
  • 博客等级: 民兵
  • 技术积分: 40
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-07 20:15
文章分类
文章存档

2012年(2)

2011年(1)

我的朋友
最近访客

分类: C/C++

2012-05-29 18:01:37

char *fgets(char *s, int size, FILE *stream); fgets() reads in at most one less than size characters from stream and stores them into the buffer pointed to by s. Reading stops after an EOF or a newline. If a newline is read, it is stored into the buffer. A '\0' is stored after the last character in the buffer. fgets() return s on success, and NULL on error or when end of file occurs while no characters have been read.
阅读(1521) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~