Signature:

     SUBROUTINE h5rget_name_f(loc_id, ref_type, ref, name, hdferr, size)
       INTEGER(HID_T)  , INTENT(IN)            :: loc_id
       INTEGER         , INTENT(IN)            :: ref_type
       TYPE(C_PTR)     , 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_type - Type of reference.
      ref      - An object or dataset region reference.

Outputs:

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

Optional parameters:

       size    - The size of the name buffer.