Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getc(3S)

errno(2)

perror(3F)

GETC(3F)

+U77 FORTRAN compile-line option required

NAME

getc, fgetc − get a character from a logical unit

SYNOPSIS

INTEGER*4 function getc (char)
character char INTEGER*4 function fgetc (lunit, char)
INTEGER*4 lunit
character char

DESCRIPTION

These routines return the next character from a file associated with a fortran logical unit, bypassing normal fortran I/O.  Getc reads from logical unit 5, normally connected to the control terminal input. 

The value of each function is a system status code. Zero indicates no error occurred on the read; −1 indicates end of file was detected.  A positive value will be either a UNIX system error code or an f77 I/O error code. See perror(3F). 

FILES

/usr/lib/libU77.a

SEE ALSO

getc(3S), errno(2), perror(3F)

Hewlett-Packard Company  —  HP-UX Release 9.0: June 1992

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