Annotation of researchv10no/games/ppt.c, revision 1.1

1.1     ! root        1: #include "stdio.h"
        !             2: main()
        !             3: {
        !             4:        register c, i;
        !             5: 
        !             6:        printf("___________\n");
        !             7:        while ((c = getchar()) != EOF)
        !             8:                putone(c);
        !             9:        printf("___________\n");
        !            10: }
        !            11: 
        !            12: putone(byte)
        !            13: register byte;
        !            14: {
        !            15:        register i;
        !            16: 
        !            17:        putchar('|');
        !            18:        for (i=7; i>=0; --i) {
        !            19:                if (i==2)
        !            20:                        putchar('.');
        !            21:                if (byte & (1 << i))
        !            22:                        putchar('o');
        !            23:                else
        !            24:                        putchar(' ');
        !            25:        }
        !            26:        putchar('|');
        !            27:        putchar('\n');
        !            28: }

unix.superglobalmegacorp.com

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