summaryrefslogtreecommitdiffstats
path: root/test/tmisc.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-29 15:19:31 (GMT)
committerGitHub <noreply@github.com>2023-06-29 15:19:31 (GMT)
commitfd56a593b7928da636b2494b25cd7478fed78c29 (patch)
treeb815098d8bcf67f4290d3ca74132ce793503b94e /test/tmisc.c
parent8aef67f0ae3e037df22c5319eb2eac8b95521b19 (diff)
downloadhdf5-fd56a593b7928da636b2494b25cd7478fed78c29.zip
hdf5-fd56a593b7928da636b2494b25cd7478fed78c29.tar.gz
hdf5-fd56a593b7928da636b2494b25cd7478fed78c29.tar.bz2
Remove HD from C std lib file ops (#3206)
* HDfclose * HDferror * HDfeof * HDfflush * HDfopen * HDfread * HDfwrite
Diffstat (limited to 'test/tmisc.c')
-rw-r--r--test/tmisc.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/tmisc.c b/test/tmisc.c
index a2e8343..67c3c85 100644
--- a/test/tmisc.c
+++ b/test/tmisc.c
@@ -2341,35 +2341,35 @@ misc13_insert_user_block(const char *old_name, const char *new_name, const char
HDmemcpy(user_block, str, HDstrlen(str));
/* Open the new file */
- new_fp = HDfopen(new_name, "wb");
- CHECK_PTR(new_fp, "HDfopen");
+ new_fp = fopen(new_name, "wb");
+ CHECK_PTR(new_fp, "fopen");
/* Write the user block to the new file */
- written = HDfwrite(user_block, (size_t)1, size, new_fp);
- VERIFY(written, size, "HDfwrite");
+ written = fwrite(user_block, (size_t)1, size, new_fp);
+ VERIFY(written, size, "fwrite");
/* Open the old file */
- old_fp = HDfopen(old_name, "rb");
- CHECK_PTR(old_fp, "HDfopen");
+ old_fp = fopen(old_name, "rb");
+ CHECK_PTR(old_fp, "fopen");
/* Allocate space for the copy buffer */
copy_buf = malloc((size_t)MISC13_COPY_BUF_SIZE);
CHECK_PTR(copy_buf, "malloc");
/* Copy data from the old file to the new file */
- while ((read_in = HDfread(copy_buf, (size_t)1, (size_t)MISC13_COPY_BUF_SIZE, old_fp)) > 0) {
+ while ((read_in = fread(copy_buf, (size_t)1, (size_t)MISC13_COPY_BUF_SIZE, old_fp)) > 0) {
/* Write the data to the new file */
- written = HDfwrite(copy_buf, (size_t)1, read_in, new_fp);
- VERIFY(written, read_in, "HDfwrite");
+ written = fwrite(copy_buf, (size_t)1, read_in, new_fp);
+ VERIFY(written, read_in, "fwrite");
}
/* Close the old file */
- ret = HDfclose(old_fp);
- VERIFY(ret, 0, "HDfclose");
+ ret = fclose(old_fp);
+ VERIFY(ret, 0, "fclose");
/* Close the new file */
- ret = HDfclose(new_fp);
- VERIFY(ret, 0, "HDfclose");
+ ret = fclose(new_fp);
+ VERIFY(ret, 0, "fclose");
/* Free the copy buffer */
free(copy_buf);