aboutsummaryrefslogtreecommitdiff
path: root/tests/basic/driver.c
blob: 9349667e84ff8c264580cfad24076bd4e9509709 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * file      : tests/basic/driver.c
 * copyright : Copyright (c) 2009-2019 Code Synthesis Tools CC
 * license   : GPLv2 with FOSS License Exception; see accompanying COPYING file
 */

#include <stdio.h>

#include <mysql/mysql.h>

int
main ()
{
  if (mysql_library_init (0, NULL, NULL))
  {
    fprintf (stderr, "failed to initialize\n");
    return 1;
  }

  printf ("libmysqlclient version: %s\n", mysql_get_client_info ());
  mysql_library_end ();
  return 0;
}