/* This is part of the netCDF package. Copyright 2018 University Corporation for Atmospheric Research/Unidata See COPYRIGHT file for conditions of use. This program excersizes HDF5 variable length array code. */ #include "h5_err_macros.h" #include #define FILE_NAME "tst_h_vl.h5" #define DIM1_LEN 3 #define ATT_NAME "att_name" #define GROUP_NAME "grp1" int main() { printf("\n*** Checking HDF5 VLEN types.\n"); printf("*** Checking simple HDF5 variable length types..."); { hid_t fileid, grpid, spaceid, typeid, attid; hsize_t dims[1] = {DIM1_LEN}; hvl_t data[DIM1_LEN], data_in[DIM1_LEN]; int *phoney; int i, j; size_t size; /* Create some phoney data, an array of struct s1, which holds a * pointer to a variable length array of int. */ for (i=0; i