hdf5/doxygen/examples/H5Fclose.c
Quincey Koziol 5ff09ae971
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
2020-11-23 10:18:26 -06:00

14 lines
257 B
C

#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;
}