17 #include <sys/types.h> 34 return (off_t) ftell(fp);
50 void G_fseek(FILE *fp, off_t offset,
int whence)
53 if (fseeko(fp, offset, whence) != 0)
56 long loff = (long) offset;
57 if ((off_t) loff != offset)
59 if (fseek(fp, loff, whence) != 0)
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
off_t G_ftell(FILE *fp)
Get the current file position of the stream.
void G_fseek(FILE *fp, off_t offset, int whence)
Change the file position of the stream.