unsigned long mysql_get_server_version(MYSQL
Returns an integer that represents the MySQL server version.
The value has the format
X is the major version,
YY is the release level (or minor version),
ZZ is the sub-version within the
major_version*10000 + release_level*100 + sub_version
This function is useful in client programs for determining whether some version-specific server capability exists.