fscanf stops when a new line is encountered in a file

前端 未结 0 357
清歌不尽
清歌不尽 2021-02-08 20:05

I am using the following while loop to read through the lines in a file

 while (fscanf(fp, "%m[^\\n]s", &line) == 1)
    {
        char c;
             


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题