![]() |
|
The mi_file_unlink() function unlinks (removes) the file that mi_file_open() has previously opened.
fd | is the file descriptor of the file to be removed. It is obtained by a previous call to mi_file_open(). |
The mi_file_unlink() function removes the operating-system file that fd identifies. This function is a destructor function for an operating-system file descriptor.
A call to mi_file_unlink() from a client LIBMI application raises an exception.
MI_OK | indicates that the function was successful. |
MI_ERROR | indicates that the function was not successful. |
The mi_file_unlink() function does not throw an MI_Exception event when it encounters a runtime error. Therefore, it does not cause callbacks to be invoked.
See the description of the mi_file_open() function.