Name

mysql_get_client_version( )

Synopsis

unsigned long *mysql_get_client_version(void)

This returns the client library version in a numeric format. For example, for Version 4.1.7, the function will return 40107.

...
unsigned long version;
version = mysql_get_client_version( );
printf("Client Version: %d \n", version);
...

Get MySQL in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.