1: #ifndef lint
   2: static char sccsid[] = "@(#)lcount.c	4.2	(Berkeley)	4/25/83";
   3: #endif not lint
   4: 
   5: #include "stdio.h"
   6: 
   7: main()  /* count lines in something */
   8: {
   9:     register n, c;
  10: 
  11:     n = 0;
  12:     while ((c = getchar()) != EOF)
  13:         if (c == '\n')
  14:             n++;
  15:     printf("%d\n", n);
  16: }

Defined functions

main defined in line 7; never used

Defined variables

sccsid defined in line 2; never used
Last modified: 1985-03-28
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1935
Valid CSS Valid XHTML 1.0 Strict