.TH "g2_unpack2.c" 3 "Fri Jun 3 2022" "Version 1.6.4" "NCEPLIBS-g2c" \" -*- nroff -*- .ad l .nh .SH NAME g2_unpack2.c \- Unpack Section 2 (Local Use Section) as defined in GRIB Edition 2\&. .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 "\fBg2int\fP \fBg2_unpack2\fP (unsigned char *cgrib, \fBg2int\fP *iofst, \fBg2int\fP *lencsec2, unsigned char **csec2)" .br .RI "This subroutine unpacks Section 2 (Local Use Section) as defined in GRIB Edition 2\&. " .in -1c .SH "Detailed Description" .PP Unpack Section 2 (Local Use Section) as defined in GRIB Edition 2\&. .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2002-10-31 .RE .PP .PP Definition in file \fBg2_unpack2\&.c\fP\&. .SH "Function Documentation" .PP .SS "\fBg2int\fP g2_unpack2 (unsigned char * cgrib, \fBg2int\fP * iofst, \fBg2int\fP * lencsec2, unsigned char ** csec2)" .PP This subroutine unpacks Section 2 (Local Use Section) as defined in GRIB Edition 2\&. PROGRAM HISTORY LOG: .IP "\(bu" 2 2002-10-31 Gilbert .IP "\(bu" 2 2008-12-23 Wesley - Initialize lencsec2 Length of Local Use data .IP "\(bu" 2 2010-08-05 Vuong - If section 2 has zero length, ierr=0 .PP .PP \fBParameters\fP .RS 4 \fIcgrib\fP char array containing Section 2 of the GRIB2 message\&. .br \fIiofst\fP Bit offset for the beginning of Section 2 in cgrib\&. The modified version will be returned\&. .br \fIlencsec2\fP Length (in octets) of Local Use data\&. .br \fIcsec2\fP Pointer to a char array containing local use data\&. .RE .PP \fBReturns\fP .RS 4 .IP "\(bu" 2 0 no error .IP "\(bu" 2 2 Array passed is not section 2 .IP "\(bu" 2 6 memory allocation error .PP .RE .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2002-10-31 .RE .PP .PP Definition at line 34 of file g2_unpack2\&.c\&. .PP References gbit()\&. .PP Referenced by g2_getfld()\&. .SH "Author" .PP Generated automatically by Doxygen for NCEPLIBS-g2c from the source code\&.