User Tools

Site Tools


c:mysql:mysql.h:mysql_get_client_info

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:mysql:mysql.h:mysql_get_client_info [2024/02/16 01:12] (current)
Line 1: Line 1:
 +{{keywords>wiki library source code example reference}}
 +===== mysql_get_client_info =====
 +
 +<code c>
 +const char *mysql_get_client_info(void)
 +</code>
 +
 + Returns the mysql client library version
 +
 +===== C Sourcecode Example =====
 +compile with gcc mysql_get_client_info.c -o mysql_get_client_info **`mysql_config --cflags --libs`** -Wall
 +<code c>#include <stdio.h> /* including standard library */
 +//#include <windows.h> /* uncomment this for Windows */
 +
 +#include <mysql/mysql.h>
 +
 +int main( void )
 +{
 +  printf("version: %s\n", mysql_get_client_info());
 +  return 0;
 +}
 +</code>
 +==== output ====
 +
 +    user@host:~$ ./mysql-get_client_info 
 +    version: 5.1.54
 +
 +    
 +
  

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/mysql/mysql.h/mysql_get_client_info.txt · Last modified: 2024/02/16 01:12 (external edit)

Impressum Datenschutz