Putcharunlocked
Putchar_unlocked is a non-portable variant of the C standard library function putchar. It writes a single character to stdout without performing the locking that protects stdout in multi-threaded environments. This can yield better performance in tight I/O loops when the program runs in a single thread or when external synchronization guarantees safe access to stdout.
Prototype and behavior: int putchar_unlocked(int ch); The function outputs the character corresponding to ch to stdout
Availability and portability: Putchar_unlocked is not part of the ISO C standard. It is provided as a
Usage considerations: Because putchar_unlocked bypasses lock protection, it is not thread-safe. Its use is appropriate only
See also: putchar, getchar_unlocked, putc_unlocked, fputc_unlocked.