Annotation of 3BSD/cmd/echo.c, revision 1.1

1.1     ! root        1: #include <stdio.h>
        !             2: 
        !             3: main(argc, argv)
        !             4: int argc;
        !             5: char *argv[];
        !             6: {
        !             7:        register int i, nflg;
        !             8: 
        !             9:        nflg = 0;
        !            10:        if(argc > 1 && argv[1][0] == '-' && argv[1][1] == 'n') {
        !            11:                nflg++;
        !            12:                argc--;
        !            13:                argv++;
        !            14:        }
        !            15:        for(i=1; i<argc; i++) {
        !            16:                fputs(argv[i], stdout);
        !            17:                if (i < argc-1)
        !            18:                        putchar(' ');
        !            19:        }
        !            20:        if(nflg == 0)
        !            21:                putchar('\n');
        !            22:        exit(0);
        !            23: }

unix.superglobalmegacorp.com

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