diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Attributes.txt | 4 | ||||
-rw-r--r-- | examples/h5_attribute.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/Attributes.txt b/examples/Attributes.txt index 299451b..50881b9 100644 --- a/examples/Attributes.txt +++ b/examples/Attributes.txt @@ -88,7 +88,7 @@ H5Aread Example: Attach to an attribute of a dataset and read in attr. data dataset=H5Dopen2(file, "Dataset1", H5P_DEFAULT); /* Get the OID of the attribute */ - attr=H5Aopen(dataset, ".", "Attr1", H5P_DEFAULT, H5P_DEFAULT); + attr=H5Aopen(dataset, "Attr1", H5P_DEFAULT); /* Read attribute */ H5Aread(attr,H5T_INT32,attr_data); @@ -120,7 +120,7 @@ H5Alink Example: Shows how to share an attribute between two datasets. dataset2=H5Dopen2(file, "Dataset2", H5P_DEFAULT); /* Get the OID of the attribute */ - attr=H5Aopen(dataset1, ".", "Foo", H5P_DEFAULT, H5P_DEFAULT); + attr=H5Aopen(dataset1, "Foo", H5P_DEFAULT); /* * Create an attribute in the second dataset to the attribute in dataset1, diff --git a/examples/h5_attribute.c b/examples/h5_attribute.c index e26ed6e..f34f771 100644 --- a/examples/h5_attribute.c +++ b/examples/h5_attribute.c @@ -184,7 +184,7 @@ main (void) * Attach to the scalar attribute using attribute name, then read and * display its value. */ - attr = H5Aopen(dataset, ".", "Integer attribute", H5P_DEFAULT, H5P_DEFAULT); + attr = H5Aopen(dataset, "Integer attribute", H5P_DEFAULT); ret = H5Aread(attr, H5T_NATIVE_INT, &point_out); printf("The value of the attribute \"Integer attribute\" is %d \n", point_out); ret = H5Aclose(attr); @@ -241,7 +241,7 @@ attr_info(hid_t loc_id, const char *name, const H5A_info_t *ainfo, void *opdata) /* * Open the attribute using its name. */ - attr = H5Aopen(loc_id, ".", name, H5P_DEFAULT, H5P_DEFAULT); + attr = H5Aopen(loc_id, name, H5P_DEFAULT); /* * Display attribute name. |