15 #include <sys/types.h>
16 #include <grass/gis.h>
17 #include <grass/glocale.h>
32 return (off_t) ftell(fp);
48 void G_fseek(FILE *fp, off_t offset,
int whence)
51 if (fseeko(fp, offset, whence) != 0)
54 long loff = (long) offset;
55 if ((off_t) loff != offset)
57 if (fseek(fp, loff, whence) != 0)
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.
int G_fatal_error(const char *msg,...)
Print a fatal error message to stderr.