Signature:

  SUBROUTINE h5dwrite_f(dset_id, mem_type_id, buf, hdferr, &
                        mem_space_id, file_space_id, xfer_prp)
    INTEGER(HID_T), INTENT(IN)              :: dset_id
    INTEGER(HID_T), INTENT(IN)              :: mem_type_id
    TYPE(C_PTR)   , INTENT(IN)              :: buf
    INTEGER       , INTENT(OUT)             :: hdferr
    INTEGER(HID_T), INTENT(IN)   , OPTIONAL :: mem_space_id
    INTEGER(HID_T), INTENT(IN)   , OPTIONAL :: file_space_id
    INTEGER(HID_T), INTENT(IN)   , OPTIONAL :: xfer_prp

Inputs:

  dset_id       - Identifier of the dataset to write to.
  mem_type_id   - Identifier of the memory datatype.
  buf           - Buffer with data to be written to the file.

Outputs:

  hdferr        - Returns 0 if successful and -1 if fails

Optional parameters:

  mem_space_id  - Identifier of the memory dataspace.
  file_space_id - Identifier of the dataset's dataspace in the file.
  xfer_prp      - Identifier of a transfer property list for this I/O operation.