MySQL 9.3 C API Developer Guide / ... / C API Basic Interface / C API Basic Function Descriptions / mysql_get_client_version()
unsigned longmysql_get_client_version(void) Returns an integer that represents the MySQL client library version. The value has the formatXXYYZZ, whereXX is the major version,YY is the release level (or minor version), andZZ is the sub-version within the release level:
major_version*10000 + release_level*100 + sub_version For example,"09.3.0" is returned as090300.
The function value is the version of MySQL that provides the client library. For more information, seeSection 3.6.12, “Obtaining the Server Version and Client Library Version”.