Annotation of researchv8dc/cmd/trim.c, revision 1.1

1.1     ! root        1: #include <stdio.h>
        !             2: 
        !             3: main(argc, argv)
        !             4: char **argv;
        !             5: {
        !             6:        long i, lim1, lim2;
        !             7:        long atol();
        !             8:        register c;
        !             9: 
        !            10:        if (argc < 3) {
        !            11:                fputs("usage: trim ncopy ndelete\n", stderr);
        !            12:                exit(1);
        !            13:        }
        !            14:        lim1 = atol(argv[1]);
        !            15:        lim2 = atol(argv[2]);
        !            16:        for (i=0; i<lim1; i++)
        !            17:                putchar(getchar());
        !            18:        for (i=0; i<lim2; i++)
        !            19:                getchar();
        !            20:        while ((c=getchar())>=0)
        !            21:                putchar(c);
        !            22: }

unix.superglobalmegacorp.com

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