mi_integer mi_streamread_real(strm_desc, real_dptr) MI_STREAM *strm_desc; mi_real **real_dptr;
The mi_streamread_real( ) function reads an mi_real value from the stream that strm_desc references. The function reads the mi_real value from the stream and puts the address of the value in the buffer that *real_dptr references. The read operation begins at the current stream seek position. You can use mi_stream_tell( ) or mi_stream_getpos( ) to obtain this seek position.
When *real_dptr points to NULL, mi_streamread_real( ) allocates the memory for the buffer in the current memory duration. Otherwise, the function assumes that you have allocated the memory that *real_dptr references.
The mi_streamread_real( ) function is useful in a streamread( ) support function of an opaque data type that contains an mi_real value.
See also the descriptions of mi_stream_getpos( ), mi_stream_read( ), mi_stream_tell( ), and mi_streamwrite_real( ).
For more information on the use of mi_streamread_real( ) in a streamread( ) support function, see the IBM Informix: DataBlade API Programmer's Guide.