MySQL 9.4 C API Developer Guide / ... / C API Basic Interface / C API Basic Function Descriptions / mysql_get_client_info()
const char *mysql_get_client_info(void) Returns a string that represents the MySQL client library version (for example,"9.4.0").
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”.