From 354bb40e75d94466e91fe6960523612c9d17ccfb Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 2 Nov 2017 23:11:29 +0300 Subject: Add implementation --- tests/basic/driver.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/basic/driver.c (limited to 'tests/basic/driver.c') diff --git a/tests/basic/driver.c b/tests/basic/driver.c new file mode 100644 index 0000000..267f206 --- /dev/null +++ b/tests/basic/driver.c @@ -0,0 +1,23 @@ +/* + * file : tests/basic/driver.c + * copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC + * license : GPLv2 with FOSS License Exception; see accompanying COPYING file + */ + +#include + +#include + +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; +} -- cgit v1.1