Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ unlocked_putc(3) — OSF/1 1.0 (TIN) MIPS

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

flockfile(3)

funlockfile(3)

putc(3)

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)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026