Signature:

      SUBROUTINE h5oset_comment_by_name_f(loc_id, name, comment, hdferr, &
            lapl_id)
        IMPLICIT NONE
        INTEGER(HID_T)  , INTENT(IN)  :: loc_id
        CHARACTER(LEN=*), INTENT(IN)  :: name
        CHARACTER(LEN=*), INTENT(IN)  :: comment
        INTEGER         , INTENT(OUT) :: hdferr
        INTEGER(HID_T)  , INTENT(IN), OPTIONAL :: lapl_id

Inputs:

      loc_id   - Identifier of a file, group, dataset, or named datatype.
      name     - Name of the object whose comment is to be set or reset,
                  specified as a path relative to loc_id.
      comment  - The new comment.

Outputs:

      hdferr   - Returns 0 if successful and -1 if fails.

Optional parameters:

      lapl_id  - Link access property list identifier.