Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

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  *      Copyright 1996, University Corporation for Atmospheric Research
00003  *      See netcdf/COPYRIGHT file for copying and redistribution conditions.
00004  */
00005 
00006 #include "netcdf.h"
00007 
00008 /*
00009  * A version string.
00010  */
00011 #define SKIP_LEADING_GARBAGE 33 /* # of chars prior to the actual version */
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 /* TEST JIG */
00024 #include <stdio.h>
00025 
00026 main()
00027 {
00028         (void) printf("Version: %s\n", nc_inq_libvers());
00029         return 0;
00030 }
00031 #endif
 

Powered by Plone

This site conforms to the following standards: