How can I handle a special character, using a if ?
Posted on 2004-10-27
I recently discovered that my program kept bugging because the file he reads contain a special character. I'd like to bypass only this character since I know there aren't any other like this. I tried using:
int parseLine(bookInfo *out, const char *str, int noLine)
for(i=0; str[i] != '\t' && str[i] != '\n' && i < 40;i++)
but it don't work. Any help would be appreciated. thanks
BTW i copied my function quickly, the problem really is into the special character.