MySQL 9.5 C API Developer Guide / ... / C API Prepared Statement Interface / C API Prepared Statement Function Descriptions / mysql_stmt_param_count()
unsigned longmysql_stmt_param_count(MYSQL_STMT *stmt)See the Example inSection 6.4.11, “mysql_stmt_execute()”.