Annotation of researchv9/libc/fio/fioputc.c, revision 1.1

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 = 0;             /* mark as writing */
        !            16:        return(0);
        !            17: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.