File: H5Fcreate.c

package info (click to toggle)
hdf5 1.14.6%2Brepack-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 210,720 kB
  • sloc: ansic: 715,827; f90: 42,941; java: 38,101; sh: 23,766; xml: 18,707; cpp: 18,011; makefile: 2,426; perl: 2,383; yacc: 332; python: 262; javascript: 203; lex: 157; ruby: 24; csh: 22
file content (13 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (6)
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;
}