diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1998-02-25 18:48:33 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1998-02-25 18:48:33 (GMT) |
commit | faa3f5739e0b52d84d119791b6859fe610b76d37 (patch) | |
tree | 6c1849a3516a7bf19a4f33af1868bb55e536c3d3 /examples/h5_group.c | |
parent | 1f96b24ba70e33d1c87dd5773d3ef18d1f46a3c5 (diff) | |
download | hdf5-faa3f5739e0b52d84d119791b6859fe610b76d37.zip hdf5-faa3f5739e0b52d84d119791b6859fe610b76d37.tar.gz hdf5-faa3f5739e0b52d84d119791b6859fe610b76d37.tar.bz2 |
[svn-r296] Switched prefix for dataspaces from H5P to H5S
Diffstat (limited to 'examples/h5_group.c')
-rw-r--r-- | examples/h5_group.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/h5_group.c b/examples/h5_group.c index 0ff7945..303ce99 100644 --- a/examples/h5_group.c +++ b/examples/h5_group.c @@ -38,7 +38,7 @@ status = H5Gclose(dir); * Create dataspace for the character string */ size[0] = 80; -dataspace = H5Pcreate_simple(1, size, NULL); +dataspace = H5Screate_simple(1, size, NULL); /* * Create dataset "String" in the root group. @@ -58,7 +58,7 @@ H5Dclose(dataset); */ dataset = H5Dcreate(file, "/FloatData/String", H5T_NATIVE_CHAR, dataspace, H5C_DEFAULT); -H5Pclose(dataspace); +H5Sclose(dataspace); H5Dclose(dataset); /* @@ -66,10 +66,10 @@ H5Dclose(dataset); */ dims[0] = 2; dims[1] = 3; -dataspace = H5Pcreate_simple(RANK, dims, NULL); +dataspace = H5Screate_simple(RANK, dims, NULL); dataset = H5Dcreate(file, "/IntData/IntArray", H5T_NATIVE_INT, dataspace, H5C_DEFAULT); -H5Pclose(dataspace); +H5Sclose(dataspace); H5Dclose(dataset); /* @@ -92,17 +92,17 @@ status = H5Gset (file, "/FloatData"); dims[0] = 5; dims[1] = 10; -dataspace = H5Pcreate_simple(RANK, dims, NULL); +dataspace = H5Screate_simple(RANK, dims, NULL); dataset = H5Dcreate(file, "FloatArray", H5T_NATIVE_FLOAT, dataspace, H5C_DEFAULT); -H5Pclose(dataspace); +H5Sclose(dataspace); H5Dclose(dataset); dims[0] = 4; dims[1] = 6; -dataspace = H5Pcreate_simple(RANK, dims, NULL); +dataspace = H5Screate_simple(RANK, dims, NULL); dataset = H5Dcreate(file, "DoubleArray", H5T_NATIVE_DOUBLE, dataspace, H5C_DEFAULT); -H5Pclose(dataspace); +H5Sclose(dataspace); H5Dclose(dataset); /* |