The string checks to see if fgets 0 is returned. Casting to char* matches only the return type of fgets :
char * fgets ( char * str, int num, FILE * stream );
But 0 is implicitly converted to char* if you delete it.
If you need more information on fgets , check here.
Fox32 source share