summaryrefslogtreecommitdiffstats
path: root/test/gen_new_super.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-10-01 14:04:36 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-10-01 14:04:36 (GMT)
commitf1ba03cea5b82699a984c80bd2deac14fdc8df18 (patch)
treeebe777c3e0b83f4c4cec9212731da9ebe0a0cfd3 /test/gen_new_super.c
parent10343c197906415388f2a4c8d292e21d25cf7381 (diff)
downloadhdf5-f1ba03cea5b82699a984c80bd2deac14fdc8df18.zip
hdf5-f1ba03cea5b82699a984c80bd2deac14fdc8df18.tar.gz
hdf5-f1ba03cea5b82699a984c80bd2deac14fdc8df18.tar.bz2
Source formatted
Diffstat (limited to 'test/gen_new_super.c')
-rw-r--r--test/gen_new_super.c30
1 files changed, 14 insertions, 16 deletions
diff --git a/test/gen_new_super.c b/test/gen_new_super.c
index 329f724..7489356 100644
--- a/test/gen_new_super.c
+++ b/test/gen_new_super.c
@@ -25,10 +25,9 @@
#include "h5test.h"
-#define TESTFILE "tsupern.h5"
-#define ISTORE_IK 64
+#define TESTFILE "tsupern.h5"
+#define ISTORE_IK 64
-
/*-------------------------------------------------------------------------
* Function: main
*
@@ -47,33 +46,32 @@
int
main(void)
{
- hid_t file; /* File IDs for old & new files */
- hid_t fcpl; /* File creation property list */
- herr_t H5_ATTR_NDEBUG_UNUSED ret;
+ hid_t file; /* File IDs for old & new files */
+ hid_t fcpl; /* File creation property list */
+ herr_t H5_ATTR_NDEBUG_UNUSED ret;
/* Create a file creation property list */
fcpl = H5Pcreate(H5P_FILE_CREATE);
- assert(fcpl>=0);
+ assert(fcpl >= 0);
- ret=H5Pset_istore_k(fcpl,ISTORE_IK);
- assert(ret>=0);
+ ret = H5Pset_istore_k(fcpl, ISTORE_IK);
+ assert(ret >= 0);
/* Creating a file with the non-default file creation property list should
* create a version 1 superblock
*/
/* Create file with custom file creation property list */
- file= H5Fcreate(TESTFILE, H5F_ACC_TRUNC , fcpl, H5P_DEFAULT);
- assert(file>=0);
+ file = H5Fcreate(TESTFILE, H5F_ACC_TRUNC, fcpl, H5P_DEFAULT);
+ assert(file >= 0);
/* Close FCPL */
- ret=H5Pclose(fcpl);
- assert(ret>=0);
+ ret = H5Pclose(fcpl);
+ assert(ret >= 0);
/* Close file */
- ret=H5Fclose(file);
- assert(ret>=0);
+ ret = H5Fclose(file);
+ assert(ret >= 0);
return 0;
}
-