summaryrefslogtreecommitdiffstats
path: root/src/H5A.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2012-04-10 20:19:35 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2012-04-10 20:19:35 (GMT)
commit45f6d4c1eed29c45476970a9703304378a5a1073 (patch)
tree667240a5ea57e8a072bc8ffb59ecb7281867164c /src/H5A.c
parentad4b4b2b90c340bb408ddf32dd5cae780547bad2 (diff)
parent09fa6e9c54380362f6f283ad60daef679ec91b25 (diff)
downloadhdf5-45f6d4c1eed29c45476970a9703304378a5a1073.zip
hdf5-45f6d4c1eed29c45476970a9703304378a5a1073.tar.gz
hdf5-45f6d4c1eed29c45476970a9703304378a5a1073.tar.bz2
[svn-r22274] merge from trunk, resolve conflicts
Diffstat (limited to 'src/H5A.c')
-rw-r--r--src/H5A.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/H5A.c b/src/H5A.c
index c59e098..0ba7361 100644
--- a/src/H5A.c
+++ b/src/H5A.c
@@ -2566,6 +2566,36 @@ done:
/*-------------------------------------------------------------------------
+ * Function: H5A_type
+ *
+ * Purpose: Return the datatype for an attribute.
+ *
+ * Return: Success: Ptr to entry
+ * Failure: NULL
+ *
+ * Programmer: Neil Fortner
+ * Friday, November 11, 2011
+ *
+ *-------------------------------------------------------------------------
+ */
+H5T_t *
+H5A_type(const H5A_t *attr)
+{
+ H5T_t *ret_value; /* Return value */
+
+ FUNC_ENTER_NOAPI(NULL)
+
+ HDassert(attr);
+
+ /* Set return value */
+ ret_value = attr->shared->dt;
+
+done:
+ FUNC_LEAVE_NOAPI(ret_value)
+} /* end H5A_type() */
+
+
+/*-------------------------------------------------------------------------
* Function: H5Aexists
*
* Purpose: Checks if an attribute with a given name exists on an opened