home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Oakland CPM Archive
/
oakcpm.iso
/
cpm
/
cug
/
softt-3.lbr
/
GETCH.DQC
/
GETCH.DOC
Wrap
Text File
|
1984-07-05
|
1KB
|
65 lines
.bp 1
.in 0
.he 'GETCH (2)'11/10/78'GETCH (2)'
.fo ''-#-''
.fi
.in 7
.ti -7
NAME
.br
getch - read character from file
.br
.sp
.ti -7
SYNOPSIS
.br
c = getch (c, fd)
.sp
.nf
character c
filedes fd
.fi
.br
.sp 1
.ti -7
DESCRIPTION
.br
Getch
reads the next character from the file specified by
fd.
The character is returned in ascii format both as the functional
return and in the parameter
c.
If the end of a line has been encountered, NEWLINE is returned.
If the end of the file has been encountered, EOF is returned.
.sp 1
.ti -7
IMPLEMENTATION
.br
Interspersed calls to
getch and getlin
work properly.
A common implementation is to have
getlin
work by repeated calls to
getch.
If the input file is not ascii, characters are mapped
into their corresponding ascii format via
a routine called "inmap".
Getch
is able to recognize an end-of-file marker from either
a terminal or a file.
.sp 1
.ti -7
SEE ALSO
.br
getc, getlin, putch, putlin, readf, writef
.sp 1
.ti -7
DIAGNOSTICS
.br
None