QP_prepare_stream()

Synopsis

     #include <quintus/quintus.h>
     
     void QP_prepare_stream(stream, buffer)
     QP_stream     *stream;
     unsigned char *buffer;
     

Initialize internal fields of a QP_stream structure.

Arguments


stream
pointer to a valid stream structure
buffer
pointer to a buffer

Description

QP_prepare_stream() should be called after other fields in QP_stream are properly set up.

The first parameter is a pointer to QP_stream and the second parameter is the address of the input/output buffer for the stream. Here &stream->qpinfo is used to get the corresponding QP_stream pointer from stream although a casting operation of QP_stream *stream will have the same effect.

Example

     QP_prepare_stream(&stream->qpinfo, stream->buffer);
     

See Also

QP_fdopen(), QP_fopen(), open/[3,4], fli-ios-cps-ire