Several contiguous records can be deleted from a table using the H5TBdelete_record
function. The H5TBdelete_record
function is simple to use. We only have to
specify a start position and the number of records to delete. In the example we call this
function as
H5TBdelete_record
( file_id, "Table1", 3, 2
);
This function call deletes 2 records from "Table1"
,
starting at position 3. Note that this position is an zero index based position.
The records that are after the deleted ones are pulled up.
The following C program provides an example of how to use this function. The corresponding HDF5 file that is generated is also referenced here. You can use an HDF5 file browser to access this file by clicking on the link below.
ex_table_07.c
ex_table_07.h5
NOTE: To download a tar file of all of the examples, including a Makefile, please go to the Index page.