.TH "seekgb.c" 3 "Fri Jun 3 2022" "Version 1.6.4" "NCEPLIBS-g2c" \" -*- nroff -*- .ad l .nh .SH NAME seekgb.c \- Searches a file for the next GRIB message\&. .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br \fC#include 'grib2\&.h'\fP .br .SS "Functions" .in +1c .ti -1c .RI "void \fBseekgb\fP (FILE *lugb, \fBg2int\fP iseek, \fBg2int\fP mseek, \fBg2int\fP *lskip, \fBg2int\fP *lgrib)" .br .RI "This subprogram searches a file for the next GRIB Message\&. " .in -1c .SH "Detailed Description" .PP Searches a file for the next GRIB message\&. .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2002-10-28 .RE .PP .PP Definition in file \fBseekgb\&.c\fP\&. .SH "Function Documentation" .PP .SS "void seekgb (FILE * lugb, \fBg2int\fP iseek, \fBg2int\fP mseek, \fBg2int\fP * lskip, \fBg2int\fP * lgrib)" .PP 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\&. .PP PROGRAM HISTORY LOG: .IP "\(bu" 2 2002-10-28 GILBERT Modified from Iredell's skgb subroutine .IP "\(bu" 2 2009-01-16 VUONG Changed lskip to 4 instead of sizof(g2int) .PP .PP \fBParameters\fP .RS 4 \fIlugb\fP FILE pointer for the file to search\&. File must be opened before this routine is called\&. .br \fIiseek\fP number of bytes in the file to skip before search\&. .br \fImseek\fP number of bytes to search at a time\&. .br \fIlskip\fP number of bytes to skip from the beggining of the file to where the GRIB message starts\&. .br \fIlgrib\fP number of bytes in message (set to 0, if no message found)\&. .RE .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2002-10-28 .RE .PP .PP Definition at line 32 of file seekgb\&.c\&. .PP References gbit()\&. .SH "Author" .PP Generated automatically by Doxygen for NCEPLIBS-g2c from the source code\&.