Signature:

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

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