msqlFetchRow(3)

NAME
msqlFetchRow - Fetch one row out of a query result

SYNOPSYS
#include <msql.h>

m_row msqlFetchRow(m_result *result);

DESCRIPTION
The individual database rows returned by a SELECT are accessed via the msqlFetchRow() function. the data is returned in a variable of type m_row which contains a char pointer for each field in the row. For example, if a select statement selected 3 fields from each row returned, the value of the 3 fields would be assigned to elements [0], [1] and [2] of the variable returned by msqlFetchRow(). A value of NULL is returned when the end of the data has been reached. The m_row datastructure is defined in <msql.h> as follows:
    typedef	char	**m_row;

RETURN VALUE
On success a m_row datastructure is returned. If the end of the data es reached a value of NULL is returned.

SEE ALSO
msqlQuery(3), msqlStoreResult(3), msql(5).