6 * input: pos, byte position of grib message
7 * len_grib, length of grib message
8 * output: *buffer, grib message
10 * note: call seek_grib first
12 * v1.0 9/94 Wesley Ebisuzaki
20 int read_grib(FILE *file
, long pos
, long len_grib
, unsigned char *buffer
) {
25 if (fseek(file
, pos
, SEEK_SET
) == -1) {
29 i
= fread(buffer
, sizeof (unsigned char), len_grib
, file
);
30 return (i
== len_grib
);