summaryrefslogtreecommitdiffstats
path: root/examples/h5_attribute.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-09-01 03:35:23 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-09-01 03:35:23 (GMT)
commit4aa79bb211349c6696677076c02b674275aff797 (patch)
treed78887d59edea5596c24cc9398a35eb2cc221cee /examples/h5_attribute.c
parent5aa61b6fcfc99ff4c6b3cfc1c639e062313564ee (diff)
downloadhdf5-4aa79bb211349c6696677076c02b674275aff797.zip
hdf5-4aa79bb211349c6696677076c02b674275aff797.tar.gz
hdf5-4aa79bb211349c6696677076c02b674275aff797.tar.bz2
[svn-r641] Changed function names for beta release.
Diffstat (limited to 'examples/h5_attribute.c')
-rw-r--r--examples/h5_attribute.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/h5_attribute.c b/examples/h5_attribute.c
index 661f72d..ed41e56 100644
--- a/examples/h5_attribute.c
+++ b/examples/h5_attribute.c
@@ -10,6 +10,7 @@
* of the array attribute.
*/
+#include <stdlib.h>
#include <hdf5.h>
#define FILE "Attributes.h5"
@@ -220,8 +221,8 @@ herr_t attr_info(hid_t loc_id, const char *name, void *opdata)
*/
atype = H5Aget_type(attr);
aspace = H5Aget_space(attr);
- rank = H5Sextent_ndims(aspace);
- ret = H5Sextent_dims(aspace, sdim, NULL);
+ rank = H5Sget_simple_extent_ndims(aspace);
+ ret = H5Sget_simple_extent_dims(aspace, sdim, NULL);
/*
* Display rank and dimension sizes for the array attribute.
*/
@@ -239,11 +240,11 @@ herr_t attr_info(hid_t loc_id, const char *name, void *opdata)
if (H5T_FLOAT == H5Tget_class(atype)) {
printf("Type : FLOAT \n");
- npoints = H5Sextent_npoints(aspace);
+ npoints = H5Sget_simple_extent_npoints(aspace);
float_array = (float *)malloc(sizeof(float)*(int)npoints);
ret = H5Aread(attr, atype, float_array);
printf("Values : ");
- for( i = 0; i < npoints; i++) printf("%f ", float_array[i]);
+ for( i = 0; i < (int)npoints; i++) printf("%f ", float_array[i]);
printf("\n");
free(float_array);
}