summaryrefslogtreecommitdiffstats
path: root/examples/h5_group.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/h5_group.c')
-rw-r--r--examples/h5_group.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/h5_group.c b/examples/h5_group.c
index 63331e3..4bad2ea 100644
--- a/examples/h5_group.c
+++ b/examples/h5_group.c
@@ -143,8 +143,8 @@ main(void)
* Unlink name "Data" and use iterator to see the names
* of the objects in the file root direvtory.
*/
- if (H5Gunlink(file, "Data") < 0)
- printf(" H5Gunlink failed \n");
+ if(H5Ldelete(file, "Data", H5P_DEFAULT) < 0)
+ printf(" H5Ldelete failed \n");
else
printf("\"Data\" is unlinked \n");