getc(3f) bsd man page | unix.com

Man Page: getc

Operating Environment: bsd

Section: 3f

GETC(3F)																  GETC(3F)

NAME
getc, fgetc - get a character from a logical unit
SYNOPSIS
integer function getc (char) character char integer function fgetc (lunit, char) 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. The value of each function is a system status code. Zero indicates no error occurred on the read; -1 indicates end of file was detected. A positive value will be either a UNIX system error code or an f77 I/O error code. See perror(3F).
FILES
/usr/lib/libU77.a
SEE ALSO
getc(3S), intro(2), perror(3F) 4.2 Berkeley Distribution May 27, 1986 GETC(3F)
Related Man Pages
fstat(3f) - bsd
fgetc(3) - mojave
getchar(3) - mojave
getc(3s) - v7
getc(3) - minix
Similar Topics in the Unix Linux Community
getcwd: permission denied error
shell-init: could not get current directory: getcwd: cannot access parent directories
getcwd problem.
How to skip getchar in C?
What is the difference between printf and putchar() or scanf and getchar() ?