table of contents
seekgb.c(3) | NCEPLIBS-g2c | seekgb.c(3) |
NAME¶
seekgb.c - Searches a file for the next GRIB message.
SYNOPSIS¶
#include <stdio.h>
#include <stdlib.h>
#include 'grib2.h'
Functions¶
void seekgb (FILE *lugb, g2int iseek, g2int
mseek, g2int *lskip, g2int *lgrib)
This subprogram searches a file for the next GRIB Message.
Detailed Description¶
Searches a file for the next GRIB message.
Author
Date
Definition in file seekgb.c.
Function Documentation¶
void seekgb (FILE * lugb, g2int iseek, g2int mseek, g2int * lskip, g2int * lgrib)¶
This subprogram searches 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.
PROGRAM HISTORY LOG:
- 2002-10-28 GILBERT Modified from Iredell's skgb subroutine
- 2009-01-16 VUONG Changed lskip to 4 instead of sizof(g2int)
Parameters
iseek number of bytes in the file to skip before search.
mseek number of bytes to search at a time.
lskip number of bytes to skip from the beggining of the file to where the GRIB message starts.
lgrib number of bytes in message (set to 0, if no message found).
Author
Date
Definition at line 32 of file seekgb.c.
References gbit().
Author¶
Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.
Tue May 3 2022 | Version 1.6.4 |