24 main(
int argc,
char **argv)
37 while ((c = getopt(argc, argv,
"v")) != -1)
46 fprintf(stderr,
"Unknown option `-%c'.\n", optopt);
48 fprintf(stderr,
"Unknown option character `\\x%x'.\n", optopt);
56 for (index = optind; index < argc; index++)
58 if (!(path[p] = malloc(
sizeof(
char) * strlen(argv[index]) + 1)))
60 strcpy(path[p], argv[index]);
67 printf(
"g2c_compare %s comparing %s and %s.\n",
G2C_VERSION, path[0], path[1]);
int main(int argc, char **argv)
Compare two GRIB2 files.
int g2c_compare(int g2cid1, int g2cid2)
Compare the metadata of two open GRIB2 files.
int g2c_open(const char *path, int mode, int *g2cid)
Open an existing GRIB2 file.
int g2c_close(int g2cid)
Close a GRIB2 file, freeing resources.
Header file for NCEPLIBS-g2c library.
#define G2C_ENOMEM
Out of memory.
#define G2C_ERROR
General error code, returned for some test errors.
#define G2C_VERSION
Current version of NCEPLIBS-g2c library.
#define G2C_NOWRITE
Set read-only access for g2c_open().
int g2c_set_log_level(int new_level)
Use this to set the global log level.