Annotation of 3BSD/cmd/troff/font/chars.c, revision 1.1

1.1     ! root        1: extern char codetab[];
        !             2: extern int chtab[];
        !             3: 
        !             4: main(){
        !             5:        register i,j,k;
        !             6: 
        !             7:        for(i=040; i<(256); i++){
        !             8:                j = codetab[i-040] & 0377;
        !             9:                if(j & 0200)for(k=0; chtab[k] != 0; k =+ 2){
        !            10:                        if(chtab[k+1] == i){
        !            11:                                printf("%o \\(%c%c\n",
        !            12:                                        j,
        !            13:                                        chtab[k] & 0377,
        !            14:                                        chtab[k]>>8 & 0377);
        !            15:                                break;
        !            16:                        }else if(i < 0177){
        !            17:                                printf("%o %c\n",j,i & 0177);
        !            18:                                break;
        !            19:                        }
        !            20:                }
        !            21:        }
        !            22: }

unix.superglobalmegacorp.com

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