Guest User

Untitled

a guest
Dec 11th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. fseek(fp, 0L, SEEK_END);
  2. loc = ftell(fp) - 1; // -1 0x0A
  3.  
  4. printf("location: %ld\n", loc);
  5.  
  6. fseek(fp, 0L, SEEK_SET);
  7. for( ; loc>=0L; loc = loc - 2L){
  8. ch = fgetc(fp);
  9. putchar(ch);
  10. fseek(fp, sizeof(char), SEEK_CUR);
  11. }
Add Comment
Please, Sign In to add comment