summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/icutest.c
blob: 0c9e994c63dd94a13f2511d8183c1aa4419b8544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* icutest.c: Basic test for libicu*
 *
 * Copyright (C) 2013 Peter Breitenlohner <tex-live@tug.org>
 * You may freely use, modify and/or distribute this file.
 */

#include <stdio.h>
#include <unicode/ucnv.h>

int main (int argc, char **argv)
{
  UVersionInfo icuVersion;
  char icu_version[U_MAX_VERSION_STRING_LENGTH] = "";

  u_getVersion(icuVersion);
  u_versionToString(icuVersion, icu_version);
  printf ("%s: Compiled with ICU version %s; using %s\n",
          argv[0], U_ICU_VERSION, icu_version);
  return 0;
}