summaryrefslogtreecommitdiffstats
path: root/tools/h5ls.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2000-11-02 04:59:51 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2000-11-02 04:59:51 (GMT)
commit48b4b454816677b3b79d03bb4d4dc7b1eef90e30 (patch)
tree5335b3f7ab3b8c2d8beb914cc4cd7030c6065696 /tools/h5ls.c
parent180a47a037320fc8fcf48cf3114e1f548d019659 (diff)
downloadhdf5-48b4b454816677b3b79d03bb4d4dc7b1eef90e30.zip
hdf5-48b4b454816677b3b79d03bb4d4dc7b1eef90e30.tar.gz
hdf5-48b4b454816677b3b79d03bb4d4dc7b1eef90e30.tar.bz2
[svn-r2790] Purpose:
new feature Description: h5tools.c: Created h5tools_init() and h5tools_close() for the initialization of the h5tools library and closing of it. With this, the rawdatastream and other internal structures can be initialized properly. h5tools.h: added prototypes for h5tools_init and h5tools_close. h5dump.c: h5ls.c: Added the calls for h5tools_init() and h5tools_close(). Platforms tested: IRIX64 -64 parallel and Linux
Diffstat (limited to 'tools/h5ls.c')
-rw-r--r--tools/h5ls.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/h5ls.c b/tools/h5ls.c
index e6fc2f0..f7af540 100644
--- a/tools/h5ls.c
+++ b/tools/h5ls.c
@@ -1923,6 +1923,9 @@ main (int argc, char *argv[])
static char root_name[] = "/";
char drivername[50];
+ /* Initialize h5tools lib */
+ h5tools_init();
+
/* Build display table */
DISPATCH(H5G_DATASET, "Dataset", H5Dopen, H5Dclose,
dataset_list1, dataset_list2);
@@ -2154,6 +2157,7 @@ main (int argc, char *argv[])
}
H5Fclose(file);
}
+ h5tools_close();
return 0;
}