Returns the next character from the input stream.
#include <stdio.h> int fgetc ( FILE *fp);
(IN) Points to the file.
If successful, returns the next byte from the input stream pointed to by fp. If the stream is at end-of-file, the EOF indicator is set and fgetc returns EOF. If a read error occurs, fgetc returns EOF and sets errno to one of the following: