fscanf return value

前端 未结 5 465
孤街浪徒
孤街浪徒 2021-01-12 02:05

What does fscanf return when it reads data in the file. For example,

int number1, number2, number3, number4, c;

c = fscanf (spFile, \"%d\", &number1);
/         


        
5条回答
  •  佛祖请我去吃肉
    2021-01-12 02:45

    The return value is not depending on the number of arguments to fscanf ,it depends on number of values successfully scanned by fscanf.

提交回复
热议问题