Annotation of 3BSD/sys/stand/cat.c, revision 1.1

1.1     ! root        1: main()
        !             2: {
        !             3:        int c, i;
        !             4:        char buf[50];
        !             5: 
        !             6:        do {
        !             7:                printf("File: ");
        !             8:                gets(buf);
        !             9:                i = open(buf, 0);
        !            10:        } while (i <= 0);
        !            11: 
        !            12:        while ((c = getc(i)) > 0)
        !            13:                putchar(c);
        !            14:        exit(0);
        !            15: }

unix.superglobalmegacorp.com

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