diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-10-01 14:04:36 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-10-01 14:04:36 (GMT) |
commit | f1ba03cea5b82699a984c80bd2deac14fdc8df18 (patch) | |
tree | ebe777c3e0b83f4c4cec9212731da9ebe0a0cfd3 /test/gen_nullspace.c | |
parent | 10343c197906415388f2a4c8d292e21d25cf7381 (diff) | |
download | hdf5-f1ba03cea5b82699a984c80bd2deac14fdc8df18.zip hdf5-f1ba03cea5b82699a984c80bd2deac14fdc8df18.tar.gz hdf5-f1ba03cea5b82699a984c80bd2deac14fdc8df18.tar.bz2 |
Source formatted
Diffstat (limited to 'test/gen_nullspace.c')
-rw-r--r-- | test/gen_nullspace.c | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/test/gen_nullspace.c b/test/gen_nullspace.c index c0f1d23..5205b21 100644 --- a/test/gen_nullspace.c +++ b/test/gen_nullspace.c @@ -26,34 +26,34 @@ #include "h5test.h" -#define NULLFILE "tnullspace.h5" -#define NULLDATASET "null_dataset" -#define NULLATTR "null_attribute" +#define NULLFILE "tnullspace.h5" +#define NULLDATASET "null_dataset" +#define NULLATTR "null_attribute" int main(void) { - hid_t fid; /* File ID */ - hid_t gid; /* Group ID */ - hid_t sid; /* Dataspace ID */ - hid_t did; /* Dataset ID */ - hid_t attr; /* Attribute ID */ - herr_t H5_ATTR_NDEBUG_UNUSED ret; /* Generic return value */ + hid_t fid; /* File ID */ + hid_t gid; /* Group ID */ + hid_t sid; /* Dataspace ID */ + hid_t did; /* Dataset ID */ + hid_t attr; /* Attribute ID */ + herr_t H5_ATTR_NDEBUG_UNUSED ret; /* Generic return value */ /* Create the file */ fid = H5Fcreate(NULLFILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); - assert(fid>0); + assert(fid > 0); sid = H5Screate(H5S_NULL); - assert(sid>0); + assert(sid > 0); /* Create dataset */ did = H5Dcreate2(fid, NULLDATASET, H5T_NATIVE_UINT, sid, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); - assert(did>0); + assert(did > 0); /* Close the dataset */ ret = H5Dclose(did); - assert(ret>=0); + assert(ret >= 0); /* Open the root group */ gid = H5Gopen2(fid, "/", H5P_DEFAULT); @@ -65,21 +65,19 @@ main(void) /* Close attribute */ ret = H5Aclose(attr); - assert(ret>=0); + assert(ret >= 0); /* Close the group */ ret = H5Gclose(gid); - assert(ret>=0); + assert(ret >= 0); /* Close the dataspace */ ret = H5Sclose(sid); - assert(ret>=0); + assert(ret >= 0); /* Close the file */ ret = H5Fclose(fid); - assert(ret>=0); + assert(ret >= 0); return 0; } - - |