Annotation of researchv10no/lbin/csh/x.c, revision 1.1

1.1     ! root        1: char   xstr[];
        !             2: #line 1 "printf.c"
        !             3: static char *sccsid = (&xstr[4589]);
        !             4: 
        !             5: 
        !             6: 
        !             7: 
        !             8: 
        !             9: printf(fmt, args)
        !            10: char *fmt;
        !            11: {
        !            12:        _doprnt(fmt, &args, 0);
        !            13: }
        !            14: 
        !            15: _strout(count, string, adjust, foo, fillch)
        !            16: register char *string;
        !            17: register int count;
        !            18: int adjust;
        !            19: register struct { int a[6]; } *foo;
        !            20: {
        !            21: 
        !            22:        if (foo != 0)
        !            23:                abort();
        !            24:        while (adjust < 0) {
        !            25:                if (*string=='-' && fillch=='0') {
        !            26:                        putchar(*string++);
        !            27:                        count--;
        !            28:                }
        !            29:                putchar(fillch);
        !            30:                adjust++;
        !            31:        }
        !            32:        while (--count>=0)
        !            33:                putchar(*string++);
        !            34:        while (adjust) {
        !            35:                putchar(fillch);
        !            36:                adjust--;
        !            37:        }
        !            38: }

unix.superglobalmegacorp.com

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