Guest User

Untitled

a guest
Jan 23rd, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. while(!feof(fp))
  2. {
  3. ch = fgetc(fp);
  4. if(ch == 'n')
  5. {
  6. lines++;
  7. }
  8. }
  9.  
  10. for (unsigned i = n ; i-- > 0 ; )
  11. {
  12. //n is the number of lines
  13. }
Add Comment
Please, Sign In to add comment