summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2006-03-01 16:26:28 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2006-03-01 16:26:28 (GMT)
commit2d175aeb4fdd9135eeee9191c7467c94c2a90e05 (patch)
tree2fd6eadb46bf9c861f4ce632ef65a7e27654ff81 /hl
parentb399040acbd5763802a96bc2c877c0bd5ea152d2 (diff)
downloadhdf5-2d175aeb4fdd9135eeee9191c7467c94c2a90e05.zip
hdf5-2d175aeb4fdd9135eeee9191c7467c94c2a90e05.tar.gz
hdf5-2d175aeb4fdd9135eeee9191c7467c94c2a90e05.tar.bz2
[svn-r11995] Purpose:
code improvement Description: add explaining comments to the functions Solution: Platforms tested: none Misc. update:
Diffstat (limited to 'hl')
-rw-r--r--hl/examples/ex_lite1.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hl/examples/ex_lite1.c b/hl/examples/ex_lite1.c
index 85a011d..868253f 100644
--- a/hl/examples/ex_lite1.c
+++ b/hl/examples/ex_lite1.c
@@ -23,10 +23,13 @@ int main( void )
int data[6]={1,2,3,4,5,6};
herr_t status;
+ /* create a HDF5 file */
file_id = H5Fcreate ("ex_lite1.h5", H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
+ /* create and write an integer type dataset named "dset" */
status = H5LTmake_dataset(file_id,"/dset",RANK,dims,H5T_NATIVE_INT,data);
-
+
+ /* close file */
status = H5Fclose (file_id);
return 0;