To overwrite records of a table we use the H5TBwrite_records
function. This function overwrites one or several records by specifying a start
record and the number of records to write. In the example, we overwrite the
first and second record by
calling
H5TBwrite_records( file_id, "Table1", 0, 2, dst_size, dst_offset, particle );
The following C program provide an example of how to overwrite records of a table. The table is initially filled with a set of fill values. 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_03.c
ex_table_03.h5
NOTE: To download a tar file of all of the examples, including a Makefile, please go to the Index page.