putchar_unlocked()

Write a character to stdout

Synopsis:

#include <stdio.h>

int putchar_unlocked( int c );

Arguments:

c
The character that you want to write.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The putchar_unlocked() function is a thread-unsafe version of putchar(). You can use it safely only when the invoking thread has locked stdout using flockfile() (or ftrylockfile()) and funlockfile().

Returns:

The character written, cast as (int)(unsigned char), or EOF if an error occurred (errno is set).

Classification:

POSIX 1003.1 TSF

Safety:
Cancellation point Yes
Interrupt handler No
Signal handler No
Thread No

See also:

getc(), getc_unlocked(), getchar(), getchar_unlocked(), putc(), putc_unlocked(), putchar()