test: Try cs_CZ.ISO8859-2 in offline/utf82locale test
[libisds.git] / client / version.c
blobb162e77dee5464df23d83702c8c40a1768606f09
1 #define _XOPEN_SOURCE 500
2 #include <stdlib.h>
3 #include <stdio.h>
4 #include <locale.h>
5 #include <time.h>
6 #include <string.h>
7 #include <isds.h>
8 #include "common.h"
11 int main(void) {
12 isds_error err;
14 setlocale(LC_ALL, "");
16 err = isds_init();
17 if (err) {
18 printf("isds_init() failed: %s\n", isds_strerror(err));
19 exit(EXIT_FAILURE);
22 printf("libisds version: %s\n", isds_version());
24 err = isds_cleanup();
25 if (err) {
26 printf("isds_cleanup() failed: %s\n", isds_strerror(err));
29 exit (EXIT_SUCCESS);