.TH GETC 3F "13 June 1983"
getc, fgetc \- get a character from a logical unit
.B integer function getc (char)
.B integer function fgetc (lunit, char)
These routines return the next character from a file associated with a
fortran logical unit, bypassing normal fortran I/O.
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 occured 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
.ie \nM /usr/ucb/lib/libU77.a
getc(3S), intro(2), perror(3F)