mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-03 02:32:04 +08:00
[svn-r792] Changed return type for H5Aget_name from size_t to hssize_t to allow negative
error values to be returned correctly.
This commit is contained in:
parent
808847e0a1
commit
bda4c6c94e
@ -986,7 +986,7 @@ H5Aget_type(hid_t attr_id)
|
||||
PURPOSE
|
||||
Gets a copy of the name for an attribute
|
||||
USAGE
|
||||
size_t H5Aget_name (attr_id, buf_size, buf)
|
||||
hssize_t H5Aget_name (attr_id, buf_size, buf)
|
||||
hid_t attr_id; IN: Attribute to get name of
|
||||
size_t buf_size; IN: The size of the buffer to store the string in.
|
||||
char *buf; IN: Buffer to store name in
|
||||
@ -1003,7 +1003,7 @@ H5Aget_type(hid_t attr_id)
|
||||
the string terminator is stored in the last position of the buffer to
|
||||
properly terminate the string.
|
||||
--------------------------------------------------------------------------*/
|
||||
size_t
|
||||
hssize_t
|
||||
H5Aget_name(hid_t attr_id, size_t buf_size, char *buf)
|
||||
{
|
||||
H5A_t *attr = NULL;
|
||||
|
@ -36,7 +36,7 @@ herr_t H5Aread(hid_t attr_id, hid_t type_id, void *buf);
|
||||
herr_t H5Aclose(hid_t attr_id);
|
||||
hid_t H5Aget_space(hid_t attr_id);
|
||||
hid_t H5Aget_type(hid_t attr_id);
|
||||
size_t H5Aget_name(hid_t attr_id, size_t buf_size, char *buf);
|
||||
hssize_t H5Aget_name(hid_t attr_id, size_t buf_size, char *buf);
|
||||
int H5Aget_num_attrs(hid_t loc_id);
|
||||
int H5Aiterate(hid_t loc_id, unsigned *attr_num, H5A_operator_t op,
|
||||
void *op_data);
|
||||
|
Loading…
Reference in New Issue
Block a user