This shows you the differences between two versions of the page.
|
c:mysql:mysql.h:mysql_get_client_version [2013/02/25 23:43] Daniel Gohlke |
c:mysql:mysql.h:mysql_get_client_version [2024/02/16 01:12] (current) |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ==== description of mysql_get_client_version ==== | ==== description of mysql_get_client_version ==== | ||
| - | mysql_get_client_version is in work by code-reference.com \\ | + | mysql_get_client_version returns the current version of your mysql client |
| - | if you are faster... don't hasitate and add it | + | usualy returns the number in the following format XXYYZZ |
| + | XX mainversion | ||
| + | YY release level | ||
| + | ZZ current version number | ||
| + | compile with gcc mysql_get_client_version.c -o mysql_get_client_version `mysql_config –cflags –libs` -Wall | ||
| <code c> | <code c> | ||
| - | no example at the moment | + | #include <stdio.h> /* including standard library */ |
| + | #include <mysql/mysql.h> | ||
| + | |||
| + | int main( void ) | ||
| + | { | ||
| + | printf("client version: %li\n", mysql_get_client_version()); | ||
| + | return 0; | ||
| + | } | ||
| </code> | </code> | ||
| ===== output of mysql_get_client_version c example ===== | ===== output of mysql_get_client_version c example ===== | ||
| - | no example at the moment | + | client version: 50529 |