int fgetc(FILE *stream);
Description
Gets character from stream.
fgetc returns the next character on the named input stream.
Return Value
On success fgetc returns the character read after converting it to an int without sign extension. On end-of-file or error it returns EOF.
//----------------------------------------------------------------------------------
int getc(FILE *stream);
Description
Gets character from stream.
getc returns the next character on the given input stream and increments the stream's file pointer to point to the next character.
Note: For Win32s or Win32 GUI applications, stdin must be redirected.
Return Value
On success, getc returns the character read, after converting it to an int without sign extension.
On end-of-file or error, it returns EOF.
//----------------------------------------------------------------------------------
So, why have both?



LinkBack URL
About LinkBacks


