Annotation of coherent/b/bin/c/common/bget.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Standard stream library for the
                      3:  * C compiler and other compilers that use
                      4:  * C compiler factilities.
                      5:  * Input a byte.
                      6:  */
                      7: #include <stdio.h>
                      8: #ifdef   vax
                      9: #include "INC$LIB:mch.h"
                     10: #include "INC$LIB:stream.h"
                     11: #else
                     12: #include "mch.h"
                     13: #include "stream.h"
                     14: #endif
                     15: 
                     16: extern FILE    *ifp;
                     17: 
                     18: bget()
                     19: {
                     20: #if    TEMPBUF
                     21:        if (ifp == NULL) {
                     22:                if (inbufp == inbufmax)
                     23:                        return(EOF);
                     24:                return(*inbufp++);
                     25:        }
                     26: #endif
                     27: #if    MSDOS
                     28:        return (_bingetc(ifp));
                     29: #else
                     30:        return (getc(ifp));
                     31: #endif
                     32: }

unix.superglobalmegacorp.com

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