seekgb.c(3) | Library Functions Manual | seekgb.c(3) |
seekgb.c - Search a file for the next GRIB message.
#include 'grib2_int.h'
#include <stdio.h>
#include <stdlib.h>
void seekgb (FILE *lugb, g2int iseek, g2int
mseek, g2int *lskip, g2int *lgrib)
Search a file for the next GRIB Message.
Search a file for the next GRIB message.
Author
Date
Date Programmer Comments 2002-10-28 GILBERT Modified from Iredell's skgb subroutine 2009-01-16 VUONG Changed lskip to 4 instead of sizof(g2int) 2022-09-11 Hartnett Added g2c_seekgb() function.
Definition in file seekgb.c.
Search a file for the next GRIB Message. The search is done starting at byte offset iseek of the file referenced by lugb for mseek bytes at a time. If found, the starting position and length of the message are returned in lskip and lgrib, respectively. The search is terminated when an EOF or I/O error is encountered.
Date Programmer Comments 2002-10-28 GILBERT Modified from Iredell's skgb subroutine 2009-01-16 VUONG Changed lskip to 4 instead of sizof(g2int)
Parameters
Author
Date
Definition at line 46 of file seekgb.c.
References BYTE, gbit(), and LOG.
Referenced by g2c_get_msg().
Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.
Version 2.1.0 | NCEPLIBS-g2c |