|
|
1.1 ! root 1: #define FIO_IMP ! 2: #include "fio.h" ! 3: #include <libc.h> ! 4: ! 5: Fputc(fd, c) ! 6: { ! 7: register Fbuffer *f; ! 8: ! 9: FIOSET(f, fd); ! 10: if(f->next >= &f->buf[FIOBSIZE]){ ! 11: if(F_flush(f, fd)) ! 12: return(-1); ! 13: } ! 14: *f->next++ = c; ! 15: f->end = f->next; ! 16: f->offset++; ! 17: f->flags |= FIO_WRITING; ! 18: return(0); ! 19: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.