Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ unlocked_putc(3S) — sys5 — Apollo Domain/OS SR10.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

flockfile(3S)

funlockfile(3S)

putc(3S)

UNLOCKED_PUTC(3S)                    SysV                    UNLOCKED_PUTC(3S)



NAME
     unlocked_putc, unlocked_putchar - write a character to a stream

SYNOPSIS
     #include <stdio.h>

     int unlocked_putc S(c, stream)
     char c,
     FILE * stream;

     int unlocked_putchar(c)
     char c ;

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(3S) and funlockfile(3S) functions used as a
     pair. The caller must ensure that the stream is locked before these
     functions are used.

DIAGNOSTICS
     Upon successful completion, the value written is returned. Otherwise, the
     constant EOF is returned.

SEE ALSO
     flockfile(3S), funlockfile(3S), putc(3S)

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