2 * Ullrich von Bassewitz, 11.08.1998
20 /* Check if the file is open or if there is an error condition */
21 if ((f->f_flags & _FOPEN) == 0 || (f->f_flags & (_FERROR | _FEOF)) != 0) {
26 switch (read (f->f_fd, &c, 1)) {
30 f->f_flags |= _FERROR;
40 return ((int) c) & 0xFF;