mi_integer mi_streamread_decimal(strm_desc, dec_dptr) MI_STREAM *strm_desc; mi_decimal **dec_dptr;
The mi_streamread_decimal( ) function reads an mi_decimal value from the stream that strm_desc references. The function reads the mi_decimal value from the stream, puts the address of the value in the buffer that dec_dptr references, and allocates memory for the value in the current memory duration. 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 *dec_dptr points to NULL, mi_streamread_decimal( ) allocates the memory for the buffer in the current memory duration. Otherwise, the function assumes that you have allocated the memory that *dec_dptr references.
The mi_streamread_decimal( ) function is useful in a streamread( ) support function of an opaque data type that contains an mi_decimal value.
See also the descriptions of mi_stream_getpos( ), mi_stream_read( ), mi_stream_tell( ), and mi_streamwrite_decimal( ).
For more information on the use of mi_streamread_decimal( ) in a streamread( ) support function, see the IBM Informix: DataBlade API Programmer's Guide.