g2_gribend.c(3) | Library Functions Manual | g2_gribend.c(3) |
g2_gribend.c - Finalize a GRIB2 message after all grids and fields have been added.
#include 'grib2_int.h'
#include <stdio.h>
g2int g2_gribend (unsigned char *cgrib)
Finalize a GRIB2 message after all grids and fields have been added.
Finalize a GRIB2 message after all grids and fields have been added.
Author
Date
Definition in file g2_gribend.c.
Finalize a GRIB2 message after all grids and fields have been added. This function adds the End Section ('7777') to the end of the GRIB message and calculates the length and stores it in the appropriate place in Section 0. This routine is used with routines g2_create(), g2_addlocal(), g2_addgrid(), and g2_addfield() to create a complete GRIB2 message.
Parameters
Returns
Note
Author
Date
Definition at line 40 of file g2_gribend.c.
References G2_ADD_MSG_COMPLETE, G2_ADD_MSG_INIT, G2_BAD_SEC, G2_BAD_SEC_COUNTS, g2c_check_msg(), G2C_EMSGCOMPLETE, G2C_ENOTGRIB, gbit(), and sbit().
Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.
Version 2.1.0 | NCEPLIBS-g2c |