|
|
1.1 root 1: .\" Copyright (c) 1983 Regents of the University of California.
2: .\" All rights reserved. The Berkeley software License Agreement
3: .\" specifies the terms and conditions for redistribution.
4: .\"
5: .\" @(#)getc.3f 6.2 (Berkeley) 5/27/86
6: .\"
7: .TH GETC 3F "May 27, 1986"
8: .UC 5
9: .SH NAME
10: getc, fgetc \- get a character from a logical unit
11: .SH SYNOPSIS
12: .B integer function getc (char)
13: .br
14: .B character char
15: .sp 1
16: .B integer function fgetc (lunit, char)
17: .br
18: .B character char
19: .SH DESCRIPTION
20: These routines return the next character from a file associated with a
21: fortran logical unit, bypassing normal fortran I/O.
22: .I Getc
23: reads from logical unit 5, normally connected to the control terminal input.
24: .PP
25: The value of each function is a system status code. Zero indicates no
26: error occurred on the read; \-1 indicates end of file was detected.
27: A positive value will be either a UNIX system error code or an f77 I/O error
28: code. See perror(3F).
29: .SH FILES
30: .ie \nM /usr/ucb/lib/libU77.a
31: .el /usr/lib/libU77.a
32: .SH "SEE ALSO"
33: getc(3S), intro(2), perror(3F)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.