Annotation of 43BSD/bin/echo.c, revision 1.1.1.1

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

unix.superglobalmegacorp.com

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