00001
00002
00003
00004
00005
00006
00007 #include <config.h>
00008 #include "netcdf.h"
00009
00010
00011
00012
00013
00014 #ifndef USE_NETCDF4
00015 #define SKIP_LEADING_GARBAGE 33
00016 #define XSTRING(x) #x
00017 #define STRING(x) XSTRING(x)
00018 static const char nc_libvers[] =
00019 "\044Id: \100(#) netcdf library version " STRING(VERSION) " of "__DATE__" "__TIME__" $";
00020
00021 const char *
00022 nc_inq_libvers(void)
00023 {
00024 return &nc_libvers[SKIP_LEADING_GARBAGE];
00025 }
00026
00027 #endif
00028
00029 #if MAKE_PROGRAM
00030 #include <stdio.h>
00031
00032 main()
00033 {
00034 (void) printf("Version: %s\n", nc_inq_libvers());
00035 return 0;
00036 }
00037 #endif