11 int _lbx_fseek(FILE *f, long *current, size_t offset)
13 static unsigned char oblivion[1024];
16 if (*current < offset) {
17 dist = offset - *current;
18 } else if (*current > offset) {
19 dist = -(long)(*current - offset);
24 if (fseek(f, dist, SEEK_CUR) == 0) {
26 } else if (*current < offset) {
28 size_t rc, amt = MIN(sizeof oblivion, dist);
29 rc = fread(oblivion, 1, amt, f);