Signature:

      SUBROUTINE h5rget_name_object_f(loc_id,  ref, name, hdferr, size)
        INTEGER(HID_T)    , INTENT(IN)            :: loc_id
        TYPE(hobj_ref_t_f), INTENT(IN)            :: ref
        CHARACTER(LEN=*)  , INTENT(OUT)           :: name
        INTEGER           , INTENT(OUT)           :: hdferr
        INTEGER(SIZE_T)   , INTENT(OUT), OPTIONAL :: size

Inputs:

      loc_id  - Identifier for the file containing the reference or
                for any object in that file.
      ref     - Object reference

Outputs:

      name    - A name associated with the referenced object or dataset region.
      hdferr  - Error code
                 0 on success and -1 on failure

Optional parameters:

      size    - The size of the name buffer,
                returning 0 (zero) if no name is associated with the identifier