Add call to grib_samples_path in examples/C

This commit is contained in:
Shahram Najm 2014-10-24 13:36:09 +01:00
parent db40c4dff3
commit f66768db60
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@ int main(int argc, char** argv)
/* see where that is). The default sample path can be changed by */
/* setting the environment variable GRIB_SAMPLES_PATH */
const char* sample_filename = "regular_ll_pl_grib1";
/* Here is how you can get the samples path */
const char* samples_path = grib_samples_path(NULL);
grib_handle *h = NULL;
double d,e;
long count;