mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
[svn-r1597] Extended space for string read in.
This commit is contained in:
parent
bf54eff7ff
commit
a92c1a7f2c
@ -174,7 +174,7 @@ main (void)
|
||||
*/
|
||||
attr = H5Aopen_idx(dataset, 2);
|
||||
atype = H5Tcopy(H5T_C_S1);
|
||||
H5Tset_size(atype, 4);
|
||||
H5Tset_size(atype, 5);
|
||||
ret = H5Aread(attr, atype, string_out);
|
||||
printf("The value of the attribute with the index 2 is %s \n", string_out);
|
||||
ret = H5Aclose(attr);
|
||||
|
Loading…
Reference in New Issue
Block a user