diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1998-09-01 03:35:23 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1998-09-01 03:35:23 (GMT) |
commit | 4aa79bb211349c6696677076c02b674275aff797 (patch) | |
tree | d78887d59edea5596c24cc9398a35eb2cc221cee /examples | |
parent | 5aa61b6fcfc99ff4c6b3cfc1c639e062313564ee (diff) | |
download | hdf5-4aa79bb211349c6696677076c02b674275aff797.zip hdf5-4aa79bb211349c6696677076c02b674275aff797.tar.gz hdf5-4aa79bb211349c6696677076c02b674275aff797.tar.bz2 |
[svn-r641] Changed function names for beta release.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/h5_attribute.c | 9 | ||||
-rw-r--r-- | examples/h5_chunk_read.c | 4 | ||||
-rw-r--r-- | examples/h5_read.c | 4 |
3 files changed, 9 insertions, 8 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); } diff --git a/examples/h5_chunk_read.c b/examples/h5_chunk_read.c index 0ee70db..0c5d03c 100644 --- a/examples/h5_chunk_read.c +++ b/examples/h5_chunk_read.c @@ -47,8 +47,8 @@ main (void) */ filespace = H5Dget_space(dataset); /* Get filespace handle first. */ - rank = H5Sextent_ndims(filespace); - status_n = H5Sextent_dims(filespace, dims, NULL); + rank = H5Sget_simple_extent_ndims(filespace); + status_n = H5Sget_simple_extent_dims(filespace, dims, NULL); printf("dataset rank %d, dimensions %lu x %lu\n", rank, (unsigned long)(dims[0]), (unsigned long)(dims[1])); diff --git a/examples/h5_read.c b/examples/h5_read.c index 599ba59..fb221ab 100644 --- a/examples/h5_read.c +++ b/examples/h5_read.c @@ -68,8 +68,8 @@ main (void) printf(" Data size is %d \n", size); dataspace = H5Dget_space(dataset); /* dataspace handle */ - rank = H5Sextent_ndims(dataspace); - status_n = H5Sextent_dims(dataspace, dims_out, NULL); + rank = H5Sget_simple_extent_ndims(dataspace); + status_n = H5Sget_simple_extent_dims(dataspace, dims_out, NULL); printf("rank %d, dimensions %lu x %lu \n", rank, (unsigned long)(dims_out[0]), (unsigned long)(dims_out[1])); |