![]() |
![]() |
![]() |
Write a character to stdout
#include <stdio.h> int putchar_unlocked( int c );
libc
The putchar_unlocked() function is a thread-unsafe version of putchar(). It can be used safely only when the invoking thread has locked stdout using flockfile() (or ftrylockfile()) and funlockfile().
The character written, cast as (int)(unsigned char), or EOF if an error occurred (errno is set).
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | No |
Thread | No |
getc(), getchar(), getchar_unlocked(), getc_unlocked(), putc(), putchar(), putc_unlocked()
![]() |
![]() |
![]() |