diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2020-11-20 04:29:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-20 04:29:01 (GMT) |
commit | c421ecca2c0b662bedee45484fd2bff774413dc2 (patch) | |
tree | 20dbc79def9c42755a2992a2efa32927ab1b073a /doxygen/examples/H5Fcreate.c | |
parent | 6ab961488afdd27c9f1ab907d557e7406a0e01f9 (diff) | |
download | hdf5-c421ecca2c0b662bedee45484fd2bff774413dc2.zip hdf5-c421ecca2c0b662bedee45484fd2bff774413dc2.tar.gz hdf5-c421ecca2c0b662bedee45484fd2bff774413dc2.tar.bz2 |
Add doxygen framework for CMake and autotools (#90)
Diffstat (limited to 'doxygen/examples/H5Fcreate.c')
-rw-r--r-- | doxygen/examples/H5Fcreate.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doxygen/examples/H5Fcreate.c b/doxygen/examples/H5Fcreate.c new file mode 100644 index 0000000..6bb1d9f --- /dev/null +++ b/doxygen/examples/H5Fcreate.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; +} |