MySQL 8.0 C API Developer Guide / ... / C API Prepared Statement Interface / C API Prepared Statement Function Descriptions / mysql_stmt_affected_rows()
uint64_tmysql_stmt_affected_rows(MYSQL_STMT *stmt)mysql_stmt_affected_rows() may be called immediately after executing a statement withmysql_stmt_execute(). It is likemysql_affected_rows() but for prepared statements. For a description of what the affected-rows value returned by this function means, SeeSection 5.4.1, “mysql_affected_rows()”.
See the Example inSection 6.4.10, “mysql_stmt_execute()”.