OUT: Pointer to reference H5R_ref_t is defined in H5Rpublic.h as: typedef unsigned char H5R_ref_t[H5R_REF_BUF_SIZE];
H5R_CREATE_ATTR creates the reference, ref_ptr, pointing to the attribute named attr_name and attached to the object named name located at loc_id.
The parameters loc_id and name are used to locate the object. The parameter attr_name is used to locate the attribute within the object.
The parameter oapl_id is an object access property list identifier for the object that the referenced attribute is attached to. The access property list must be of the same type as that object, that is a group, dataset or committed datatype property list.
Returns a non-negative value if successful; otherwise returns a negative value.