.\" @(#)getc.3f 1.3 86/01/02 SMI; from UCB 4.2 .TH GETC 3F "98/09/16" .SH NAME getc, fgetc \- get a character from a logical unit .SH SYNOPSIS .\" .IX getc "" \fLgetc\fP .IX fgetc "" \fLfgetc\fP .IX get "a character getc, fgetc" "" "a character: \&\fLgetc\fR, \&\fLfgetc\fR" .IX read "a character getc, fgetc" "" "a character: \&\fLgetc\fR, \&\fLfgetc\fR" .IX character "get a character getc, fgetc" "" "get a character: \&\fLgetc\fR, \&\fLfgetc\fP" .\" .B integer*4 function getc (char) .br .B character char .sp 1 .B integer*4 function fgetc (lunit, char) .br .B character char .\" .SH DESCRIPTION These functions return the next character from a file associated with a FORTRAN logical unit, bypassing normal FORTRAN I/O. .PP .B getc reads from logical unit 5, normally connected to the control terminal input. .PP The value of each function is a system status code. Zero indicates that no error occurred on the read; \-1 indicates that the end of the file was detected. A positive value is either a SunOS system error code or an f77 I/O error code. See .BR perror (3F). .LP Do not mix normal Fortran I/O with calls to .B getc or .BR fgetc . .\" .SH FILES .B libF77.a .SH "SEE ALSO" .BR getc (3S), .BR intro (2), .BR perror (3F)