NCEPLIBS-g2c 2.0.0
Loading...
Searching...
No Matches
g2cutil.c File Reference

Internal utility functions for the NCEPLIBS-g2c library for the new g2c API. More...

#include "grib2_int.h"
#include <stdarg.h>

Go to the source code of this file.

Functions

int g2c_log_file (int g2cid)
 Print a summary of the contents of an open GRIB2 file.
 
int g2c_log_section (G2C_SECTION_INFO_T *sec)
 Log info about a section.
 
int g2c_log_section1 (G2C_MESSAGE_INFO_T *msg)
 Log section 0 information.
 
const char * g2c_strerror (int g2cerr)
 Given an error code, return an error message.
 

Variables

G2C_FILE_INFO_T g2c_file [G2C_MAX_FILES+1]
 Global file information.
 
G2C_CODE_TABLE_Tg2c_table
 Pointer to the list of code tables.
 

Detailed Description

Internal utility functions for the NCEPLIBS-g2c library for the new g2c API.

Author
Ed Hartnett
Date
Oct 11, 2023

Definition in file g2cutil.c.

Function Documentation

◆ g2c_log_file()

◆ g2c_log_section()

int g2c_log_section ( G2C_SECTION_INFO_T sec)

◆ g2c_log_section1()

◆ g2c_strerror()

const char * g2c_strerror ( int  g2cerr)

Given an error code, return an error message.

Parameters
g2cerrAn error number returned by one of the g2c_* functions.
Returns
The error message.
Author
Ed Hartnett

Definition at line 29 of file g2cutil.c.

References G2C_EBADEND, G2C_EBADID, G2C_EBADSECTION, G2C_EBADTEMPLATE, G2C_EBADTYPE, G2C_EFILE, G2C_EINVAL, G2C_EJPEG, G2C_EMSG, G2C_EMSGCOMPLETE, G2C_ENAMETOOLONG, G2C_ENOEND, G2C_ENOMEM, G2C_ENOMSG, G2C_ENOPARAM, G2C_ENOPRODUCT, G2C_ENOSECTION, G2C_ENOTEMPLATE, G2C_ENOTFOUND, G2C_ENOTGRIB, G2C_ENOTGRIB2, G2C_EPNG, G2C_ETOOMANYFILES, G2C_EXML, and G2C_NOERROR.

Variable Documentation

◆ g2c_file

◆ g2c_table

G2C_CODE_TABLE_T* g2c_table
extern

Pointer to the list of code tables.

Definition at line 16 of file g2ccsv.c.

Referenced by g2c_csv_init(), g2c_find_desc_str(), g2c_find_table(), g2c_free_tables(), g2c_log_file(), and g2c_print_tables().