summaryrefslogtreecommitdiffstats
path: root/doxygen/examples/H5Fclose.c
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2021-01-29 12:59:33 (GMT)
committerGitHub <noreply@github.com>2021-01-29 12:59:33 (GMT)
commit674e1f02a3ac37cf3d57df1aee902b7af44f398e (patch)
tree35b83598bb49d92567d70e4f0213344ffaf01f42 /doxygen/examples/H5Fclose.c
parent40dfdee0f5d462ebd1134625a832a7f6a6e5c2a8 (diff)
downloadhdf5-674e1f02a3ac37cf3d57df1aee902b7af44f398e.zip
hdf5-674e1f02a3ac37cf3d57df1aee902b7af44f398e.tar.gz
hdf5-674e1f02a3ac37cf3d57df1aee902b7af44f398e.tar.bz2
1 10 Whitespace changes after clang-format run (#287)
* HDFFV-10865 - merge from dev, HDFArray perf fix. * Remove duplicate setting * Whitespace changes after clang format * Undo version 11 clang format changes
Diffstat (limited to 'doxygen/examples/H5Fclose.c')
-rw-r--r--doxygen/examples/H5Fclose.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/doxygen/examples/H5Fclose.c b/doxygen/examples/H5Fclose.c
index 6bb1d9f..525bad3 100644
--- a/doxygen/examples/H5Fclose.c
+++ b/doxygen/examples/H5Fclose.c
@@ -1,12 +1,13 @@
#include "hdf5.h"
-int main()
+int
+main()
{
- hid_t file;
- if ((file = H5Fcreate("foo.h5", H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0)
- return -1;
- /* Do something good with this file. */
- if(H5Fclose(file) < 0)
- return -2;
- return 0;
+ hid_t file;
+ if ((file = H5Fcreate("foo.h5", H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0)
+ return -1;
+ /* Do something good with this file. */
+ if (H5Fclose(file) < 0)
+ return -2;
+ return 0;
}