[svn-r7346] Purpose:

bug fix

Description:
On windows, rindex is not supported. strrchr is used instead.

Solution:

Platforms tested:
linux 2.4, windows 2000
(since the change is minimal and three other platforms have been used to
test for 1.7 branch, so no needs to test more).

Misc. update:
This commit is contained in:
MuQun Yang
2003-08-11 18:03:28 -05:00
parent 5c0b6b9676
commit c8a653e397

View File

@@ -18,7 +18,6 @@
#include "H5private.h"
#include "h5tools.h"
#include "h5tools_utils.h"
#include <strings.h>
/* module-scoped variables */
static const char *progname = "h5dump";
@@ -2913,7 +2912,7 @@ main(int argc, const char *argv[])
char * ns;
char *indx;
ns = strdup(xmlnsprefix);
indx = rindex(ns,(int)':');
indx = strrchr(ns,(int)':');
if (indx) *indx = '\0';
printf("<%sHDF5-File xmlns:%s=\"http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File\" "