msqlStoreResult(3)

NAME
msqlStoreResult - Store results of a query

SYNOPSYS
#include <msql.h>

m_result *msqlStoreResult();

DESCRIPTION
Data returned by a SELECT query must be stored before another query is submitted or it will be removed from the internal API buffers. Data is stored using the msqlStoreResult(). The result handle is a pointer to a m_result structure and is passed to other API routines when access to the data is required. Once the result handle is allocated, other queries may be submitted. A program may have many result handles active simultaneously. The m_result structure is defined in <msql.h> as follows:
    typedef struct result_s {
            m_data 	*queryData,
                    *cursor;
    	m_fdata	*fieldData,
    		*fieldCursor;
    	int	numRows,
    		numFields;
    } m_result;

RETURN VALUE
On success thefunction returns a result handle to a filled datastructure.

SEE ALSO
msqlQuery(3), msqlFreeResult(3), msqld(8), msql(5).