Returns a character from the stdin stream.
#include <stdio.h> int getchar_unlocked ( void );
If successful, returns the next byte from the input stream pointed to by stdin. If the stream is at end-of-file, getchar_unlocked sets the EOF indicator and returns EOF. If a read error occurs, getchar_unlocked sets the error indicator, returns EOF, and sets errno to one of the following:
The getchar_unlocked function is a non-thread safe version of the getchar function. It should be used in a multi-threaded program only if the invoking thread has locked stdin.