msqlListFields(3)

NAME
msqlListFields - Get information in a particular table

SYNOPSYS
#include <msql.h>

m_result *msqlListFields(int sock, char *table);

DESCRIPTION
Information about the fields in a particular table can be obtained using msqlListFields(). The function is called with the name of a table in the current database as selected using msqlSelectDB(3) and a result handle is returned to the caller. Unlike msqlListDBs(3) and msqlListTables(3), the field information is contained in field structures rather than data rows. It is accessed using msqlFetchField(3). 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), msqlFetchField(3), msqlFreeResult(3), msqlListDBs(3), msqlNumRows(3).