# 2.11BSD#431 - /usr/src/bin/echo.c

##### Functions

    main              X

       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: }

#### Defined functions

main defined in line 4; never used

#### Defined variables

sccsid defined in line 1; never used

Last modified: 1987-02-08 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 982 |