CodePudding user response:
Error message said, pointer user no goal, so can't use,CodePudding user response:
Cattle, have not allocate space use,CodePudding user response:
Fp get is true or false, is not the return value of fopen, modified as follows:if ((fp=fopen (" XXX ", "r"))==NULL) {
Printf (" % s ", the strerror (errno));
return -1;//open the direct return failure, to prevent the back of the continued use of fp
}