The mi_stream_eof() function

The mi_stream_eof() function determines whether the current stream seek position is at the end of the stream.

Syntax

mi_integer mi_stream_eof(strm_desc)
   MI_STREAM *strm_desc;
strm_desc
A pointer to a stream descriptor for an open stream.
Valid in client LIBMI application? Valid in user-defined routine?
No Yes

Usage

The mi_stream_eof() function determines if the seek position of the stream that strm_desc references is currently at the end of the stream. You can use this function on any stream. The function does not have to be implemented for a user-defined stream.

Return values

MI_TRUE
The end of the stream has been reached.
MI_FALSE
The end of the stream has not been reached.
MI_STREAM_EBADARG
The stream descriptor that strm_desc references is invalid.