Annotation of coherent/a/usr/src/misc/showflag.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Turn flags into Display chars or -
        !             3:  */
        !             4: void
        !             5: showflag(data, flags, output)
        !             6: long data;
        !             7: register char *flags;  /* low order first */
        !             8: register char *output; /* a data area as big as flags */
        !             9: {
        !            10:        register int c;
        !            11: 
        !            12:        for(;c = *flags++; data >>= 1)
        !            13:                *output++ = (data & 1) ? c : '-';
        !            14:        output = '\0';
        !            15: }

unix.superglobalmegacorp.com

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