Digital Research
This commit is contained in:
2020-11-06 18:50:37 +01:00
parent 621ed8ccaf
commit 31738079c4
8481 changed files with 1888323 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
.th GETCHAR
.sh NAME
getchar \*- read character
.sh SYNOPSIS
.ft B
int getchar( )
.br
.ft R
.sh DESCRIPTION
Getchar reads records from the standard input (VERSAdos file #5)
into a buffer and returns these characters one per call to the
user. Getchar assumes that it is reading ASCII records. It
places a '\\n' character on the end of each record, and translates
the VERSAdos tab character (any negative character) into a '\\t'.
Getchar returns a negative number for EOF or read error.
Since all VERSAdos I/O is record I/O, getchar must be buffered,
and thus is not any less efficient than getc.