informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

mi_file_tell()

The mi_file_tell() function returns the current seek position for an operating-system file, relative to the beginning of the file.

Syntax

Usage

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.

Return Values

>=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.

Related Topics

See the descriptions of the following functions: mi_file_open() and mi_file_seek().


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved