The mi_stream_set_eof() function

The mi_stream_set_eof() function sets the end-of-file marker for a stream.

Syntax

mi_integer mi_stream_set_eof(strm_desc)
      MI_STREAM *strm_desc;
strm_desc
A pointer to a stream descriptor for an open stream.

Return values

MI_TRUE
The end-of-file marker has been set.
MI_STREAM_EBADARG
The stream descriptor that strm_desc reference is invalid.