summaryrefslogtreecommitdiffstats
path: root/tools/h5tools.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>1999-12-10 20:44:04 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>1999-12-10 20:44:04 (GMT)
commitf30439d5920626e9527817f9168d72ae1594208e (patch)
tree429d027e4fd375e5a40e552d8f2537046654b2eb /tools/h5tools.c
parent1c91b6fed2e81de31ccb0febcaf2c00efa52ed3f (diff)
downloadhdf5-f30439d5920626e9527817f9168d72ae1594208e.zip
hdf5-f30439d5920626e9527817f9168d72ae1594208e.tar.gz
hdf5-f30439d5920626e9527817f9168d72ae1594208e.tar.bz2
[svn-r1870] h5dump.c:
Added -V option for displaying version information. h5tools.c: Added print_version routine to display version information. h5tools.h: Added print_version prototype.
Diffstat (limited to 'tools/h5tools.c')
-rw-r--r--tools/h5tools.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/h5tools.c b/tools/h5tools.c
index a1048ed..61a6459 100644
--- a/tools/h5tools.c
+++ b/tools/h5tools.c
@@ -2509,3 +2509,12 @@ int h5dump_attr(hid_t oid, hid_t p_type){
return (status);
}
+/* Print the program name and the version information which is */
+/* defined the same as the HDF5 library version. */
+void print_version(char *program_name)
+{
+ printf("%s: Version %u.%u.%u%s\n",
+ program_name, H5_VERS_MAJOR, H5_VERS_MINOR, H5_VERS_RELEASE,
+ H5_VERS_SUBRELEASE);
+}
+