summaryrefslogtreecommitdiffstats
path: root/examples/h5_crtgrp.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/h5_crtgrp.c')
-rw-r--r--examples/h5_crtgrp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/h5_crtgrp.c b/examples/h5_crtgrp.c
index e81425d..3a94a8f 100644
--- a/examples/h5_crtgrp.c
+++ b/examples/h5_crtgrp.c
@@ -30,7 +30,7 @@ int main() {
file_id = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/* Create a group named "/MyGroup" in the file. */
- group_id = H5Gcreate(file_id, "/MyGroup", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
+ group_id = H5Gcreate2(file_id, "/MyGroup", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
/* Close the group. */
status = H5Gclose(group_id);