Doxygen Source Code Documentation
        
Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search   
libvers.c
Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 #include "netcdf.h"
00007 
00008 
00009 
00010 
00011 #define SKIP_LEADING_GARBAGE 33 
00012 #define XSTRING(x)      #x
00013 #define STRING(x)       XSTRING(x)
00014 static const char nc_libvers[] =
00015         "\044Id: \100(#) netcdf library version " STRING(VERSION) " of "__DATE__" "__TIME__" $";
00016 
00017 const char *
00018 nc_inq_libvers(void)
00019 {
00020         return &nc_libvers[SKIP_LEADING_GARBAGE];
00021 }
00022 
00023 #if MAKE_PROGRAM 
00024 #include <stdio.h>
00025 
00026 main()
00027 {
00028         (void) printf("Version: %s\n", nc_inq_libvers());
00029         return 0;
00030 }
00031 #endif