Utility Functions and C Language Reference > C Language Reference > Alphabetical List of Functions > fgetc


Example: fgetc Input-Output Functions

Gets a character from a stream.

int fgetc( FILE *file_pointer);

file_pointer A pointer to a file.

Return Values

Returns the requested character. If the End Of File is reached or if a reading error occurred, it returns an EOF character.