4 * Ullrich von Bassewitz, 02.06.1998
15 /*****************************************************************************/
17 /*****************************************************************************/
21 int __fastcall__ fputc (int c, FILE* f)
23 /* Check if the file is open or if there is an error condition */
24 if ((f->f_flags & _FOPEN) == 0 || (f->f_flags & (_FERROR | _FEOF)) != 0) {
28 /* Write the byte (knows about byte order!) */
29 if (write (f->f_fd, &c, 1) <= 0) {
31 f->f_flags |= _FERROR;
35 /* Return the byte written */