mysql_num_fields(3) MariaDB Connector/C mysql_num_fields(3)

mysql_num_fields - Returns number of fields in a result set

#include <mysql.h>
unsigned int mysql_num_fields(MYSQL_RES * );

Returns number of fields in a specified result set.

MYSQL RES * - A result set identifier returned by mysql_store_result(3) or mysql_use_result(3).

Returns number of fields.

mysql_fetch_field(3)
mysql_field_count(3)
Version 3.3.1