/* This is part of the netCDF package. Copyright 2018 University Corporation for Atmospheric Research/Unidata See COPYRIGHT file for conditions of use. See www.unidata.ucar.edu for more info. Test netcdf-4 opaque types. $Id: tst_opaques.c,v 1.18 2010/05/25 13:53:04 ed Exp $ */ #include #include #include "err_macros.h" #define FILE_NAME "tst_opaques.nc" #define DIM_LEN 3 #define ATT_NAME "att_name" #define DIM_NAME "dim" #define BASE_SIZE 20 #define VAR_NAME "var_defined_by_netcdf_user" #define TYPE_NAME "type_defined_by_netcdf_user" int main(int argc, char **argv) { int ncid; size_t size_in; nc_type xtype; unsigned char data[DIM_LEN][BASE_SIZE], data_in[DIM_LEN][BASE_SIZE]; int i, j; printf("\n*** Testing netcdf-4 opaque type.\n"); for (i=0; i