![]() |
|
The mi_file_tell() function returns the current seek position for an operating-system file, relative to the beginning of the file.
fd | is the file descriptor of the file whose seek position is requested. The fd value is obtained by a previous call to mi_file_open(). |
The mi_file_tell() function obtains the seek position for the operating-system file that fd identifies.
This function can access files on the server computer from a C UDR.
>=0 | is the current seek position, measured in number of bytes from the beginning of the file. |
MI_ERROR | indicates that the function was not successful. |
The mi_file_tell() 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 descriptions of the following functions: mi_file_open() and mi_file_seek().