int c;
while( ( c = fgetc( filepointer ) != EOF )
printf( "Read \'%c\': %d.\n", c, c );A char is just an int that's small.
Quzah.
Type: Posts; User: quzah
int c;
while( ( c = fgetc( filepointer ) != EOF )
printf( "Read \'%c\': %d.\n", c, c );A char is just an int that's small.
Quzah.
Characters have integer values. Basically, a valid character gets returned in the range of the character's possibilities, otherwise a different value gets returned for error states.
Go read about...
fgetc perhaps? Any basic C book should cover this in the chapter about files.
Quzah.