Annotation of researchv9/libc/gen/print.c, revision 1.1

1.1     ! root        1: #define        SIZE    1024
        !             2: extern int     printcol;
        !             3: 
        !             4: char   *doprint();
        !             5: 
        !             6: print(fmt, args)
        !             7: char *fmt;
        !             8: {
        !             9:        char buf[SIZE], *out;
        !            10: 
        !            11:        out = doprint(buf, fmt, (char *)&args);
        !            12:        return write(1, buf, (int)(out-buf));
        !            13: }
        !            14: 
        !            15: fprint(f, fmt, args)
        !            16: char *fmt;
        !            17: {
        !            18:        char buf[SIZE], *out;
        !            19: 
        !            20:        out = doprint(buf, fmt, (char *)&args);
        !            21:        return write(f, buf, (int)(out-buf));
        !            22: }
        !            23: 
        !            24: sprint(buf, fmt, args)
        !            25: char *buf;
        !            26: char *fmt;
        !            27: {
        !            28:        char *out;
        !            29:        int scol;
        !            30: 
        !            31:        scol = printcol;
        !            32:        out = doprint(buf, fmt, (char *)&args);
        !            33:        printcol = scol;
        !            34:        return out-buf;
        !            35: }

unix.superglobalmegacorp.com

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