unlocked_putc(3) — Subroutines
OSF
NAME
unlocked_putc, unlocked_putchar − Writes a character to a stream
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <stdio.h>
int unlocked_putc(
char c,
FILE ∗ file);
int unlocked_putchar(
char c );
PARAMETERS
file Specifies the stream.
c Specifies the character to be written.
DESCRIPTION
The unlocked_putc() and unlocked_putchar() functions are functionally identical to the putc() and putchar() functions, except that unlocked_putc() and unlocked_putchar() may be safely used only within a scope that is protected by the flockfile() and funlockfile() functions used as a pair. The caller must ensure that the stream is locked before these functions are used.
RETURN VALUES
Upon successful completion, the value written is returned. Otherwise, the constant EOF is returned.
RELATED INFORMATION
Functions: flockfile(3), funlockfile(3), putc(3)