Xinu7/man/man2/getc.doc




GETC(2)             Xinu Programmer's Manual              GETC(2)



NAME
     getc - device independent character input routine

SYNOPSIS
     int getc(dev)
     int dev;

DESCRIPTION
     _G_e_t_c will read the next character from the I/O device given
     by _d_e_v. It returns SYSERR if _d_e_v is incorrect.  A successful
     call may return a character (widened to an integer) or the
     value EOF to denote end of file, depending on the device
     driver.

SEE ALSO
     close(2), control(2), open(2), putc(2), read(2), seek(2),
     write(2)

BUGS
     Not all devices report the end-of-file condition.



































Version 6b               Printed 1/12/87                        1