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 /test | |
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 'test')
-rw-r--r-- | test/big.c | 6 | ||||
-rw-r--r-- | test/testframe.c | 2 | ||||
-rw-r--r-- | test/use_common.c | 6 |
3 files changed, 7 insertions, 7 deletions
@@ -495,8 +495,8 @@ reader(char *filename, hid_t fapl) while (HDfgets(ln, (int)sizeof(ln), script)) { if ('#' != ln[0]) break; - i = (int)HDstrtol(ln + 1, &s, 10); - hs_offset[0] = HDstrtoull(s, NULL, 0); + i = (int)strtol(ln + 1, &s, 10); + hs_offset[0] = strtoull(s, NULL, 0); fprintf(stdout, "#%03d 0x%016" PRIxHSIZE "%47s", i, hs_offset[0], ""); HDfflush(stdout); @@ -741,7 +741,7 @@ main(int ac, char **av) ac--; av++; if (ac > 0) { - family_size_def = (hsize_t)HDstrtoull(*av, NULL, 0); + family_size_def = (hsize_t)strtoull(*av, NULL, 0); } else { printf("***Missing fsize value***\n"); diff --git a/test/testframe.c b/test/testframe.c index f472b2e..bb760f8 100644 --- a/test/testframe.c +++ b/test/testframe.c @@ -643,7 +643,7 @@ TestAlarmOn(void) /* Get the alarm value from the environment variable, if set */ if (env_val != NULL) - alarm_sec = (unsigned)HDstrtoul(env_val, (char **)NULL, 10); + alarm_sec = (unsigned)strtoul(env_val, (char **)NULL, 10); /* Set the number of seconds before alarm goes off */ alarm((unsigned)alarm_sec); diff --git a/test/use_common.c b/test/use_common.c index 68b7d00..e77ec77 100644 --- a/test/use_common.c +++ b/test/use_common.c @@ -94,7 +94,7 @@ parse_option(int argc, char *const argv[], options_t *opts) } /* end switch (reader/writer-only mode toggle) */ break; case 'n': /* number of planes to write/read */ - if ((opts->nplanes = HDstrtoul(optarg, NULL, 0)) <= 0) { + if ((opts->nplanes = strtoul(optarg, NULL, 0)) <= 0) { fprintf(stderr, "bad number of planes %s, must be a positive integer\n", optarg); usage(opts->progname); Hgoto_error(-1); @@ -110,7 +110,7 @@ parse_option(int argc, char *const argv[], options_t *opts) opts->use_swmr = (hbool_t)use_swmr; break; case 'y': /* Number of planes per chunk */ - if ((opts->chunkplanes = HDstrtoul(optarg, NULL, 0)) <= 0) { + if ((opts->chunkplanes = strtoul(optarg, NULL, 0)) <= 0) { fprintf(stderr, "bad number of planes per chunk %s, must be a positive integer\n", optarg); usage(opts->progname); @@ -118,7 +118,7 @@ parse_option(int argc, char *const argv[], options_t *opts) } break; case 'z': /* size of chunk=(z,z) */ - if ((opts->chunksize = HDstrtoull(optarg, NULL, 0)) <= 0) { + if ((opts->chunksize = strtoull(optarg, NULL, 0)) <= 0) { fprintf(stderr, "bad chunksize %s, must be a positive integer\n", optarg); usage(opts->progname); Hgoto_error(-1); |