netcdf-c/nc_test/tst_meta.c
dmh 20720199c8 1. synch with oc
2. fix ocuri parameter handling
3. add ncdap_test/testuri.sh to test parameter handling.
2014-12-27 20:42:01 -07:00

35 lines
661 B
C

/*
Copyright 20014, UCAR/Unidata
See COPYRIGHT file for copying and redistribution conditions.
This is part of netCDF.
This program checks to see that netcdf_meta.h exists and is
properly formatted.
*/
#include <config.h>
#include <stdlib.h>
#include <stdio.h>
#include <netcdf.h>
#include <netcdf_meta.h>
int main(int argc, char **argv) {
/* If netcdf_meta.h is damaged, this file will
just flat-out fail to compile, also resulting
in an error.
*/
#ifndef NETCDF_META_H
printf("Error! NETCDF_META_H not defined. Check netcdf_meta.h.\n");
return -1;
#else
printf("Success! NETCDF_META_H defined.\n");
return 0;
#endif
}