summaryrefslogtreecommitdiffstats
path: root/doxygen/examples/H5Fclose.c
blob: 8c2ef08c4391817fee0cfade8fbf43873137f4f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "hdf5.h"

int
main(void)
{
    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;
}