1: #include "stdio.h"
   2: 
   3: main()  /* count lines in something */
   4: {
   5:     register n, c;
   6: 
   7:     n = 0;
   8:     while ((c = getchar()) != EOF)
   9:         if (c == '\n')
  10:             n++;
  11:     printf("%d\n", n);
  12: }

Defined functions

main defined in line 3; never used
Last modified: 1981-07-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 625
Valid CSS Valid XHTML 1.0 Strict