The mi_stream_set_error() function
The mi_stream_set_error() function sets the last error status for an open stream.
Syntax
mi_integer mi_stream_set_error(strm_desc, errno)
MI_STREAM *strm_desc;
mi_integer errno;
- strm_desc
- A pointer to a stream descriptor for an open stream.
- errno
- A valid stream error code.
Valid in client LIBMI application? | Valid in user-defined routine? |
---|---|
No | Yes |
Usage
The mi_stream_set_error() function sets the last error code of the stream that strm_desc references. For information about stream error codes, see the HCL OneDB™ DataBlade® API Programmer's Guide.
Return values
- MI_TRUE
- The function was successful.
- MI_STREAM_EBADARG
- The stream descriptor that strm_desc references is invalid.