26 main(
int argc,
char **argv)
28 char *path[2] = {NULL, NULL};
39 while ((c = getopt(argc, argv,
"v")) != -1)
48 fprintf(stderr,
"Unknown option `-%c'.\n", optopt);
50 fprintf(stderr,
"Unknown option character `\\x%x'.\n", optopt);
58 for (index = optind; index < argc; index++)
60 if (!(path[p] = malloc(
sizeof(
char) * strlen(argv[index]) + 1)))
62 strcpy(path[p], argv[index]);
69 printf(
"g2c_index %s reading index file %s summarizing into %s.\n",
G2C_VERSION, path[0], path[1]);
89 printf(
"returning 0\n");
int main(int argc, char **argv)
Print a summary of a GRIB1 or GRIB2 index file.
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.