diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-06-29 15:18:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-29 15:18:49 (GMT) |
commit | 8aef67f0ae3e037df22c5319eb2eac8b95521b19 (patch) | |
tree | 1286f3e2109b73a7040119779331814436110fae /tools/src/h5ls | |
parent | 9f430d15b004495d17826840ef1a4f281215c7f9 (diff) | |
download | hdf5-8aef67f0ae3e037df22c5319eb2eac8b95521b19.zip hdf5-8aef67f0ae3e037df22c5319eb2eac8b95521b19.tar.gz hdf5-8aef67f0ae3e037df22c5319eb2eac8b95521b19.tar.bz2 |
Remove HD from strto* calls (#3204)
* HDstrtod
* HDstrtol
* HDstrtoll
* HDstrtoul
* HDstrtoull
* HDstrtoumax
Diffstat (limited to 'tools/src/h5ls')
-rw-r--r-- | tools/src/h5ls/h5ls.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/src/h5ls/h5ls.c b/tools/src/h5ls/h5ls.c index 2a826c1..24bb345 100644 --- a/tools/src/h5ls/h5ls.c +++ b/tools/src/h5ls/h5ls.c @@ -2535,7 +2535,7 @@ get_width(void) /* Try to get it from the COLUMNS environment variable first since it's * value is sometimes wrong. */ if ((s = HDgetenv("COLUMNS")) && *s && isdigit((int)*s)) - width = (int)HDstrtol(s, NULL, 0); + width = (int)strtol(s, NULL, 0); #if defined(H5_HAVE_STRUCT_VIDEOCONFIG) && defined(H5_HAVE__GETVIDEOCONFIG) { @@ -2784,7 +2784,7 @@ main(int argc, char *argv[]) vfd_info.info = (const void *)(argv[argno] + 11); } else if (!HDstrncmp(argv[argno], "--width=", (size_t)8)) { - width_g = (int)HDstrtol(argv[argno] + 8, &rest, 0); + width_g = (int)strtol(argv[argno] + 8, &rest, 0); if (0 == width_g) no_line_wrap_g = TRUE; @@ -2801,7 +2801,7 @@ main(int argc, char *argv[]) else { s = argv[++argno]; } - width_g = (int)HDstrtol(s, &rest, 0); + width_g = (int)strtol(s, &rest, 0); if (width_g <= 0 || *rest) { usage(); leave(EXIT_FAILURE); @@ -2828,7 +2828,7 @@ main(int argc, char *argv[]) else { s = argv[++argno]; } - width_g = (int)HDstrtol(s, &rest, 0); + width_g = (int)strtol(s, &rest, 0); if (0 == width_g) { no_line_wrap_g = TRUE; |