FreeBSD manual

download PDF document: mysql_num_fields.3.pdf

mysql_num_fields(3) MariaDB Connector/C mysql_num_fields(3)
Name mysql_num_fields - Returns number of fields in a result set
Synopsis
#include <mysql.h>
unsigned int mysql_num_fields(MYSQL_RES * );

Description Returns number of fields in a specified result set.
Parameter o MYSQL RES * - A result set identifier returned by mysql_store_result(3) or mysql_use_result(3).
Return value Returns number of fields.
See also o mysql_fetch_field(3)
o mysql_field_count(3)
Version 3.3.1 mysql_num_fields(3)