msqlListTables(3)

NAME
msqlListTables - Get a list of existing tables

SYNOPSYS
#include <msql.h>

m_result *msqlListTables(int sock);

DESCRIPTION
Once a databease has been selected using msqlSelectDB(3), a list of tables defined in that database can be retrieved using the msqlListTables() function. As with msqlListDBs(3), a result handle is returned to the calling program and the names of the tables are contained in data rows where element [0] of the row is the name of one table in the current database. The result handle must be freed when it is no longer needed by calling msqlFreeResult(3). 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
A result handle is returned. If it is empty msqlNumRows(3) will return 0.

SEE ALSO
msqlSelectDB(3), msqlStoreResult(3), msqlFreeResult(3), msqlListDBs(3), msqlNumRows(3).