summaryrefslogtreecommitdiffstats
path: root/src/libmysqlclient-test.c
blob: bea004600c93b579ae3ec0ad75b104a033680108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * This file is part of MXE.
 * See index.html for further information.
 */

#include <mysql.h>
#include <stdio.h>

int main(int argc, char *argv[])
{
    (void)argc;
    (void)argv;

    if (mysql_library_init(0, NULL, NULL)) {
        fprintf(stderr, "Could not initialize MySQL library\n");
        exit(1);
    }

    printf("MySQL client library initialized: %s\n", mysql_get_client_info());
    mysql_library_end();

    return EXIT_SUCCESS;
}