19#include <grass/glocale.h>
34 return (off_t)ftell(fp);
50void G_fseek(FILE *fp, off_t offset,
int whence)
53 if (fseeko(fp, offset, whence) != 0) {
59 long loff = (long)offset;
61 if ((off_t)loff != offset)
63 if (fseek(fp, loff, whence) != 0) {
void G_fatal_error(const char *msg,...)
Print a fatal error message to stderr.
off_t G_ftell(FILE *fp)
Get the current file position of the stream.
SYMBOL * err(FILE *fp, SYMBOL *s, char *msg)