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