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

mi_file_seek()

The mi_file_seek() function seeks a specified location on an operating-system file.

Syntax

Usage

The mi_file_seek() function uses the whence and offset arguments to determine the seek position, as follows:

This offset value can be negative for all values of whence. The mi_file_tell() function returns the current seek position for an open smart large object.

Return Values

>=0 is the new 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_seek() 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(), mi_file_read(), mi_file_tell(), and mi_file_write().


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