Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ unlocked_getc(3S) — sys5 — Apollo Domain/OS SR10.4.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

flockfile(3S)

funlockfile(3S)

getc(3S)

UNLOCKED_GETC(3S)                    SysV                    UNLOCKED_GETC(3S)



NAME
     unlocked_getc, unlocked_getchar - get a character from an input stream

SYNOPSIS
     #include <stdio.h>
     int unlocked_getc (FILE * file);

     int unlocked_getchar ( void );

DESCRIPTION
     The unlocked_getc and unlocked_getchar functions are functionally
     identical to the getc and getchar functions, except that unlocked_getc
     and unlocked_getchar 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.

DIAGNOSTICS
     The integer constant EOF is returned at the end of the file or upon an
     error.

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

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