mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-05 15:42:32 +08:00
13 lines
238 B
C
13 lines
238 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;
|
|
}
|