fd
is the file descriptor of the file to be written. The file descriptor is obtained by a previous call to mi_file_open().
Yes
MI_OK
The function was successful.
MI_ERROR
The function was not successful.