Home > Back-end >  C language problem
C language problem

Time:12-12

Dear bosses, I don't know while reading the string character, can you teach me, still hope everybody who help revise the

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
}
  • Related