Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

line counter in c

while((ch = fgetc(fp)) != EOF)
{
  ch = fgetc(fp);
  if(ch == '
')
  {
    lines++;
  }
}
 
PREVIOUS NEXT
Tagged: #line #counter
ADD COMMENT
Topic
Name
5+6 =