unsigned int mysql_warning_count(MYSQL *mysql)
mysql_warning_count is in work by code-reference.com if you are faster… don't hasitate and add it
no example at the moment