msqlDataSeek(3)

NAME
msqlDataSeek - Set Curser in result of a query

SYNOPSYS
#include <msql.h>

void msqlDataSeek(m_result *result, int pos);

DESCRIPTION
The m_result structure contains a client side ``cursor'' that holds information about the next row of data to be returned to the calling program. msqlDataSeek() can be used to move the position of the data cursor. If it is called with a position of 0, the next call to msqlFetchRow(3) will return the first row of data returned by the server. The value of pos can be anywhere from 0 (the first row) and the number of rows in the table. If a seek is made past the end of table, the next call to msqlFetchRow(3) will return a NULL.

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