diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-08-24 19:07:19 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-08-24 19:07:33 (GMT) |
commit | ba974c031deb709b6d4241da95485b48d747afdd (patch) | |
tree | b580cd124bf1e663e9b4b0db4db2690cc206f2d4 /tools/test/misc/talign.c | |
parent | 884ad149e29f7c99487af676f0bbcd88cbf2735f (diff) | |
download | hdf5-ba974c031deb709b6d4241da95485b48d747afdd.zip hdf5-ba974c031deb709b6d4241da95485b48d747afdd.tar.gz hdf5-ba974c031deb709b6d4241da95485b48d747afdd.tar.bz2 |
OESS-29 Update HD prefix mostly
Diffstat (limited to 'tools/test/misc/talign.c')
-rw-r--r-- | tools/test/misc/talign.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/test/misc/talign.c b/tools/test/misc/talign.c index 7f1f038..944674d 100644 --- a/tools/test/misc/talign.c +++ b/tools/test/misc/talign.c @@ -53,12 +53,12 @@ int main(void) HDprintf("%-70s", "Testing alignment in compound datatypes"); - HDstrcpy(string5, "Hi!"); + strcpy(string5, "Hi!"); HDunlink(fname); fil = H5Fcreate(fname, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); if (fil < 0) { - HDputs("*FAILED*"); + puts("*FAILED*"); return 1; } @@ -123,8 +123,8 @@ int main(void) data = (char *)HDmalloc(H5Tget_size(fix)); if(!data) { - HDperror("malloc() failed"); - HDabort(); + perror("malloc() failed"); + abort(); } set = H5Dopen2(fil, setname, H5P_DEFAULT); @@ -136,7 +136,7 @@ int main(void) out: if(error < 0) { result = 1; - HDputs("*FAILED - HDF5 library error*"); + puts("*FAILED - HDF5 library error*"); } else if(!(H5_FLT_ABS_EQUAL(fok[0], fptr[0])) || !(H5_FLT_ABS_EQUAL(fok[1], fptr[1])) || !(H5_FLT_ABS_EQUAL(fnok[0], fptr[2])) @@ -183,9 +183,9 @@ out: (double)fok[1], (double)fptr[1], (double)fnok[0], (double)fptr[2], (double)fnok[1], (double)fptr[3]); - HDputs("*FAILED - compound type alignmnent problem*"); + puts("*FAILED - compound type alignmnent problem*"); } else { - HDputs(" PASSED"); + puts(" PASSED"); } if(data) @@ -200,7 +200,7 @@ out: H5Pclose(plist); H5Fclose(fil); HDunlink(fname); - HDfflush(stdout); + fflush(stdout); return result; } |