Gets the next character from the stream.
#include <stdio.h> int getc_unlocked ( FILE *fp);
(IN) Points to the file object.
If successful, returns the next byte from the input stream. Otherwise, if the stream is at end-of-file, returns EOF and sets the EOF indicator. If a read error occurs, returns EOF, sets the error indicator, and sets errno to one of the following:
The getc_unlocked function is a non-thread safe version of the getc function. It should be used in a multi-threaded program only if it is called while the invoking thread owns the file object, as is the case after a successful call to the flockfile or ftrylockfile functions.
The character is returned as an int value.