summaryrefslogtreecommitdiffstats
path: root/examples/h5_attribute.c
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>1998-09-01 15:07:02 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>1998-09-01 15:07:02 (GMT)
commit94a9576ee7bf5ea5db73984d492378822f6c684f (patch)
treea9546b708e42f416da2abbb3565cca081914d6b8 /examples/h5_attribute.c
parent697b9c5ad0a76333dc1cf5ee03aff1c350a4e887 (diff)
downloadhdf5-94a9576ee7bf5ea5db73984d492378822f6c684f.zip
hdf5-94a9576ee7bf5ea5db73984d492378822f6c684f.tar.gz
hdf5-94a9576ee7bf5ea5db73984d492378822f6c684f.tar.bz2
[svn-r645] ./examples/h5_attribute.c
./examples/h5_select.c Cosmetic changes to the source format ./examples/h5_chunk_read.c ./examples/h5_read.c Third argument in the H5select_hyperslab function had wrong datatype. Fixed.
Diffstat (limited to 'examples/h5_attribute.c')
-rw-r--r--examples/h5_attribute.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/h5_attribute.c b/examples/h5_attribute.c
index ed41e56..904c1df 100644
--- a/examples/h5_attribute.c
+++ b/examples/h5_attribute.c
@@ -27,7 +27,8 @@
herr_t attr_info(hid_t loc_id, const char *name, void *opdata);
/* Operator function */
-int main (void)
+int
+main (void)
{
hid_t file, dataset; /* File and dataset identifiers */
@@ -189,6 +190,7 @@ idx = H5Aiterate(dataset, NULL, attr_info, NULL);
*/
H5Dclose(dataset);
H5Fclose(file);
+
return 0;
}
@@ -256,5 +258,6 @@ herr_t attr_info(hid_t loc_id, const char *name, void *opdata)
H5Tclose(atype);
H5Sclose(aspace);
H5Aclose(attr);
+
return 0;
}