1GETC(3F) GETC(3F)
2
3
4
6 getc, fgetc - get a character from a logical unit
7
9 integer function getc (char)
10 character char
11
12 integer function fgetc (lunit, char)
13 character char
14
16 These routines return the next character from a file associated with a
17 fortran logical unit, bypassing normal fortran I/O. Getc reads from
18 logical unit 5, normally connected to the control terminal input.
19
20 The value of each function is a system status code. Zero indicates no
21 error occurred on the read; -1 indicates end of file was detected. A
22 positive value will be either a UNIX system error code or an f77 I/O
23 error code. See perror(3F).
24
26 /usr/lib/libU77.a
27
29 getc(3S), intro(2), perror(3F)
30
31
32
334.2 Berkeley Distribution May 27, 1986 GETC(3F)