File: tst_meta.c

package info (click to toggle)
netcdf 1%3A4.7.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 104,952 kB
  • sloc: ansic: 228,683; sh: 10,980; yacc: 2,561; makefile: 1,319; lex: 1,173; xml: 173; awk: 2
file content (43 lines) | stat: -rw-r--r-- 852 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
  Copyright 2018, 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 <stdio.h> /* printf() */
#include <config.h>
#include <stdlib.h>
#include <stdio.h>
#include <netcdf.h>

#if defined(NC_HAVE_META_H)
#include <netcdf_meta.h>
#endif

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
#ifndef NC_HAVE_META_H
  printf("Error! NC_HAVE_META_H not defined. Check netcdf.h.\n");
#else
  printf("Error! NETCDF_META_H not defined. Check netcdf_meta.h.\n");
#endif
  return -1;
#else
  printf("Success! NETCDF_META_H defined.\n");
  return 0;
#endif


}