manual page distributed with 4.2BSD
[unix-history] / usr / src / share / man / man3f / getc.3
CommitLineData
db408a40
KM
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.\"
32e6d81d 5.\" @(#)getc.3 6.1 (Berkeley) %G%
db408a40 6.\"
32e6d81d 7.TH GETC 3F ""
db408a40
KM
8.UC 5
9.SH NAME
10getc, 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
20These routines return the next character from a file associated with a
21fortran logical unit, bypassing normal fortran I/O.
22.I Getc
23reads from logical unit 5, normally connected to the control terminal input.
24.PP
25The value of each function is a system status code. Zero indicates no
26error occured on the read; \-1 indicates end of file was detected.
27A positive value will be either a UNIX system error code or an f77 I/O error
28code. See perror(3F).
29.SH FILES
30.ie \nM /usr/ucb/lib/libU77.a
31.el /usr/lib/libU77.a
32.SH "SEE ALSO"
33getc(3S), intro(2), perror(3F)