ncdf4a13/libsrc/libvers.c

Go to the documentation of this file.
00001 /*
00002  *      Copyright 1996, University Corporation for Atmospheric Research
00003  *      See netcdf/COPYRIGHT file for copying and redistribution conditions.
00004  */
00005 /* $Id: libvers.c,v 2.7 2005/11/30 13:05:47 ed Exp $ */
00006 
00007 #include <config.h>
00008 #include "netcdf.h"
00009 
00010 /*
00011  * A version string. This whole function is not needed in netCDF-4,
00012  * which has it's own version of this function.
00013  */
00014 #ifndef USE_NETCDF4
00015 #define SKIP_LEADING_GARBAGE 33 /* # of chars prior to the actual version */
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 /* USE_NETCDF4*/
00028 
00029 #if MAKE_PROGRAM /* TEST JIG */
00030 #include <stdio.h>
00031 
00032 main()
00033 {
00034         (void) printf("Version: %s\n", nc_inq_libvers());
00035         return 0;
00036 }
00037 #endif

Generated on Thu Mar 16 18:10:09 2006 for nco by  doxygen 1.4.4