summaryrefslogtreecommitdiffstats
path: root/tools/h4toh5anno.c
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2000-10-12 22:52:28 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2000-10-12 22:52:28 (GMT)
commitbddc59c0ead7bc5e6cf5cc832a8281580c9e1208 (patch)
treececd7df83613f210a6505346e336f640ed5d013b /tools/h4toh5anno.c
parent8abdfea352aaebde90c67e4c0657ef866caaab79 (diff)
downloadhdf5-bddc59c0ead7bc5e6cf5cc832a8281580c9e1208.zip
hdf5-bddc59c0ead7bc5e6cf5cc832a8281580c9e1208.tar.gz
hdf5-bddc59c0ead7bc5e6cf5cc832a8281580c9e1208.tar.bz2
[svn-r2675]
Purpose: fix "zero memory" routine and change dimensional scale name size to MAX_DIM_NAME Description: change bzero into h4toh5_ZeroMemory change dimensional scale name size(orginally MAX_NC_NAME) to MAX_DIM_NAME at converter. Solution: see description Platforms tested: arabica,baldric,gondolin(DEC),opus(HP 11),eirene(Linux),paz(IRIX6.5)
Diffstat (limited to 'tools/h4toh5anno.c')
-rw-r--r--tools/h4toh5anno.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/h4toh5anno.c b/tools/h4toh5anno.c
index 6f11594..199d5f1 100644
--- a/tools/h4toh5anno.c
+++ b/tools/h4toh5anno.c
@@ -79,7 +79,7 @@ int Annofil_h4_to_h5(int32 file_id,hid_t h5group){
printf("error in allocating memory. \n");
return FAIL;
}
- bzero(ann_buf,(ann_length+1)*sizeof(char));
+ h4toh5_ZeroMemory(ann_buf,(ann_length+1)*sizeof(char));
istat = ANreadann(ann_id,ann_buf,ann_length+1);
if(istat==FAIL) {
@@ -176,7 +176,7 @@ int Annofil_h4_to_h5(int32 file_id,hid_t h5group){
ANendaccess(ann_id);
return FAIL;
}
- bzero(ann_buf,ann_length+1);
+ h4toh5_ZeroMemory(ann_buf,ann_length+1);
istat = ANreadann(ann_id,ann_buf,ann_length+1);
@@ -357,7 +357,7 @@ int Annoobj_h4_to_h5(int32 file_id,int32 obj_ref, int32 obj_tag,
ANend(an_id);
return FAIL;
}
- bzero(ann_buf,(ann_length+1)*sizeof(char));
+ h4toh5_ZeroMemory(ann_buf,(ann_length+1)*sizeof(char));
status = ANreadann(ann_id,ann_buf,ann_length+1);
if(status == FAIL) {
printf("error in reading data.\n");
@@ -466,7 +466,7 @@ int Annoobj_h4_to_h5(int32 file_id,int32 obj_ref, int32 obj_tag,
return FAIL;
}
- bzero(ann_buf,(ann_length+1)*sizeof(char));
+ h4toh5_ZeroMemory(ann_buf,(ann_length+1)*sizeof(char));
ANreadann(ann_id,ann_buf,ann_length+1);
if ((sh5str_type = mkstr(ann_length+1,H5T_STR_NULLTERM))<0) {