diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-03-01 16:26:28 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-03-01 16:26:28 (GMT) |
commit | 2d175aeb4fdd9135eeee9191c7467c94c2a90e05 (patch) | |
tree | 2fd6eadb46bf9c861f4ce632ef65a7e27654ff81 /hl/examples | |
parent | b399040acbd5763802a96bc2c877c0bd5ea152d2 (diff) | |
download | hdf5-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/examples')
-rw-r--r-- | hl/examples/ex_lite1.c | 5 |
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; |