Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ unlocked_getc(3) — OSF/1 X2.0-8 MIPS

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

flockfile(3)

funlockfile(3)

getc(3)

unlocked_getc(3)  —  Subroutines

OSF

NAME

unlocked_getc, unlocked_getchar − Gets a character from an input stream

LIBRARY

Standard C Library (libc.a)

SYNOPSIS

#include <stdio.h>
int unlocked_getc(
FILE ∗ file);
int unlocked_getchar ( void );

PARAMETERS

file Specifies the input stream. 

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. 

RETURN VALUES

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

RELATED INFORMATION

Functions: flockfile(3), funlockfile(3), getc(3)

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