MK27's explanation of EOF is feasible, though it might be more likely because character literals in C are of type int, and strchr is taken from the C standard library.Quote:
Originally Posted by Programmer_P
Conversion from char to int is perfectly fine. It will probably not generate any warnings, and I do not recommend a cast.Quote:
Originally Posted by Programmer_P