Function getc

Top 

Declaration:

int getc(unsigned long 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.

Returned Value

On success, getc returns the character read, after converting it to an int without the sign extension. On the end-of-file or error, it returns EOF.