Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fseek(fp, 0L, SEEK_END);
- loc = ftell(fp) - 1; // -1 0x0A
- printf("location: %ld\n", loc);
- fseek(fp, 0L, SEEK_SET);
- for( ; loc>=0L; loc = loc - 2L){
- ch = fgetc(fp);
- putchar(ch);
- fseek(fp, sizeof(char), SEEK_CUR);
- }
Add Comment
Please, Sign In to add comment