diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2015-03-11 09:59:37 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2015-03-11 09:59:37 (GMT) |
commit | 77f1054b3d34e2ee65de389bd8588c031db7db1f (patch) | |
tree | 0490d5dc58b82e4db0b3fbd3fd4cf28845bde943 /hl/examples/ex_table_03.c | |
parent | 52896a9f015ce685e00c72dba3aff146ebc3df49 (diff) | |
parent | 88ac8e8929f6fd99732a1e08ced4ea82bfb230f1 (diff) | |
download | hdf5-77f1054b3d34e2ee65de389bd8588c031db7db1f.zip hdf5-77f1054b3d34e2ee65de389bd8588c031db7db1f.tar.gz hdf5-77f1054b3d34e2ee65de389bd8588c031db7db1f.tar.bz2 |
[svn-r26429] Merge of r26393-26428 from the trunk.
Tested w/ h5committest
Diffstat (limited to 'hl/examples/ex_table_03.c')
-rw-r--r-- | hl/examples/ex_table_03.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hl/examples/ex_table_03.c b/hl/examples/ex_table_03.c index 7315fd3..c9f94ce 100644 --- a/hl/examples/ex_table_03.c +++ b/hl/examples/ex_table_03.c @@ -71,7 +71,6 @@ int main( void ) hsize_t chunk_size = 10; hsize_t start; /* Record to start reading/writing */ hsize_t nrecords; /* Number of records to read/write */ - herr_t status; int i; /* Define 2 new particles to write */ @@ -92,7 +91,7 @@ int main( void ) file_id = H5Fcreate( "ex_table_03.h5", H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT ); /* Make the table */ - status=H5TBmake_table( "Table Title", + H5TBmake_table( "Table Title", file_id, TABLE_NAME, NFIELDS, @@ -110,11 +109,11 @@ int main( void ) /* Overwrite 2 records starting at record 0 */ start = 0; nrecords = NRECORDS_WRITE; - status=H5TBwrite_records( file_id, TABLE_NAME, start, nrecords, dst_size, dst_offset, + H5TBwrite_records( file_id, TABLE_NAME, start, nrecords, dst_size, dst_offset, dst_sizes, particle_in); /* read the table */ - status=H5TBread_table( file_id, TABLE_NAME, dst_size, dst_offset, dst_sizes, dst_buf ); + H5TBread_table( file_id, TABLE_NAME, dst_size, dst_offset, dst_sizes, dst_buf ); /* print it by rows */ for (i=0; i<NRECORDS; i++) { |