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)