Dear all,
In my app, I used fgets(_Name, 30, fp_t) to read a string (for instance either "NAME_ID", "A DOG" or whatever that is not specific) from a txt file and save the value to a string pointer _Name. I.e. _Name is the string pointer of which value is "NAME_ID_Square" after reading. _Square means there is a square following NAME_ID, which is shown in the debug windows in VS2005. However, this leads strcmp("NAME_ID", "NAME_ID_SQUARE") returns none-zero values, while it ought to be the same in the scenario.
Therefore, do you have any idea about the problem? And how shall I remove the square in the pointer of which value is "NAME_ID_Square"?
Thanks in advance,
Regards,
Qing