projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
BSD 3 development
[unix-history]
/
usr
/
src
/
cmd
/
learn
/
lcount.c
#include
"stdio.h"
main
()
/* count lines in something */
{
register
n
,
c
;
n
=
0
;
while
((
c
=
getchar
()) !=
EOF
)
if
(
c
==
'
\n
'
)
n
++;
printf
(
"%d
\n
"
,
n
);
}