summaryrefslogtreecommitdiffstats
path: root/doxygen/examples/hello_hdf5.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@lbl.gov>2020-11-23 16:18:26 (GMT)
committerGitHub <noreply@github.com>2020-11-23 16:18:26 (GMT)
commit5ff09ae971cdb8a85c596520666c8dc178541e4a (patch)
tree56cd3f440387a7bd29938a8fc150a2073bc50e19 /doxygen/examples/hello_hdf5.c
parentd4a3097ec5d9e44d377c4b91a05b3e0c5f9f1e2c (diff)
downloadhdf5-5ff09ae971cdb8a85c596520666c8dc178541e4a.zip
hdf5-5ff09ae971cdb8a85c596520666c8dc178541e4a.tar.gz
hdf5-5ff09ae971cdb8a85c596520666c8dc178541e4a.tar.bz2
Basic alignment with async branch (#115)
* Basic alignment with async branch - trivial changes to reduce clutter in overall diff. * Update minor error code to reflect change within library * Update the error output to match library
Diffstat (limited to 'doxygen/examples/hello_hdf5.c')
-rw-r--r--doxygen/examples/hello_hdf5.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/doxygen/examples/hello_hdf5.c b/doxygen/examples/hello_hdf5.c
index 56a179c..a37d39f 100644
--- a/doxygen/examples/hello_hdf5.c
+++ b/doxygen/examples/hello_hdf5.c
@@ -1,12 +1,13 @@
#include "hdf5.h"
-int main()
+int
+main()
{
- herr_t retval;
- unsigned majnum, minnum, relnum;
+ herr_t retval;
+ unsigned majnum, minnum, relnum;
- if ((retval = H5get_libversion(&majnum, &minnum, &relnum)) >= 0) {
- printf("Hello, HDF5 %d.%d.%d!\n", majnum, minnum, relnum);
- }
- return retval;
+ if ((retval = H5get_libversion(&majnum, &minnum, &relnum)) >= 0) {
+ printf("Hello, HDF5 %d.%d.%d!\n", majnum, minnum, relnum);
+ }
+ return retval;
}