Repeat the loop until fgets returns NULL.
重复该循环直至fgets返回NULL。
youdao
Well, you saw an example using a loop with fgets.
好的,您看到了fgets使用循环的示例。
The fgets function is your weapon of choice for this first example.
fgets函数是处理第一个示例的首选武器。
fgets函数功能为从指定的流中读取数据,每次读取一行。其原型为:char *fgets(char *str, int n, FILE *stream);从指定的流 stream 读取一行,并把它存储在 str 所指向的字符串内。当读取 (n-1) 个字符时,或者读取到换行符时,或者到达文件末尾时,它会停止,具体视情况而定。
详细内容
应用推荐
模块上移
模块下移
不移动