User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:mysql:mysql.h:mysql_get_client_info

mysql_get_client_info

const char *mysql_get_client_info(void)

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

#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;
}

output

  user@host:~$ ./mysql-get_client_info 
  version: 5.1.54
advertising
c/mysql/mysql.h/mysql_get_client_info.txt · Last modified: 2013/01/22 22:02 (external edit)

Impressum Datenschutz