Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getc(3s)

intro(2)

perror(3f)



GETC(3F)                COMMAND REFERENCE                GETC(3F)



NAME
     getc, fgetc - get a character from a logical unit

SYNOPSIS
     integer function getc (char)
     character char

     integer function fgetc (lunit, char)
     integer 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.  Fgetc reads from
     logical unit lunit, which must be opened for input.

     The value of each function is a system status code.  0
     indicates no error occured on the read; A return value of -1
     indicates end-of-file was detected.  A positive value will
     be either a UTek system error code or an f77 I/O error code.
     See perror(3f).

FILES
     /usr/lib/libU77.a        f77 UTek system interface library.

RETURN VALUE
     The value of each function is a system status code.

     [0]              Indicates no error occured on the read.

     [-1]             Indicates end-of-file was detected.

     A positive value will be either a UTek system error code or
     an f77 I/O error code.  See perror(3f).

SEE ALSO
     getc(3s), intro(2), and perror(3f).
















Printed 3/13/89                                                 1



%%index%%
na:264,101;
sy:365,1176;
de:1541,848;
fi:2389,178;
rv:2567,460;
se:3027,173;
%%index%%000000000110

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