From f66768db60d8f137f8240f7111f961e939bb7d25 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 24 Oct 2014 13:36:09 +0100 Subject: [PATCH] Add call to grib_samples_path in examples/C --- examples/C/set_data.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/C/set_data.c b/examples/C/set_data.c index 8ada68953..dd69d8fa5 100644 --- a/examples/C/set_data.c +++ b/examples/C/set_data.c @@ -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;