diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-11-03 16:42:09 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-11-03 16:42:09 (GMT) |
commit | c812f3fea2c9bacfc0f2d2bcad6960e9aa640dcd (patch) | |
tree | 79245efc0218e670e8c5edd9eb0d57ad045f0633 /doxygen/examples/H5Fclose.c | |
parent | dc47bb7084d55993a0a6f3725dcf79d92d7f0e65 (diff) | |
download | hdf5-c812f3fea2c9bacfc0f2d2bcad6960e9aa640dcd.zip hdf5-c812f3fea2c9bacfc0f2d2bcad6960e9aa640dcd.tar.gz hdf5-c812f3fea2c9bacfc0f2d2bcad6960e9aa640dcd.tar.bz2 |
Add doxygen auotoconf and cmake support
Diffstat (limited to 'doxygen/examples/H5Fclose.c')
-rw-r--r-- | doxygen/examples/H5Fclose.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doxygen/examples/H5Fclose.c b/doxygen/examples/H5Fclose.c new file mode 100644 index 0000000..6bb1d9f --- /dev/null +++ b/doxygen/examples/H5Fclose.c @@ -0,0 +1,12 @@ +#include "hdf5.h" + +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; +} |