Writes a character to the output stream.
#include <stdio.h> int putc_unlocked ( int c, FILE *fp);
(IN) Specifies the byte to be written.
(IN) Points to the file.
If successful, returns the character written. If a write error occurs, returns EOF, sets the error indicator for the stream, and sets errno to one of the following:
The putc_unlocked function is equivalent to putc, except that it is non-thread safe. 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.