*** empty log message ***
[m17n/m17n-test.git] / find-flt.c
1 #include <stdio.h>
2 #include <m17n-flt.h>
3
4 static unsigned int
5 otf_tag (char *p)
6 {
7   unsigned int tag = 0;
8   int i;
9
10   for (i = 0; i < 4 && *p; i++, p++)
11     tag = (tag << 8) | *p;
12   return (i < 4 ? 0 : tag);
13 }
14
15 int
16 main (int argc, char **argv)
17 {
18   int c;
19   MFLT *flt;
20
21   M17N_INIT ();
22
23   c = 0x915;
24   flt = mflt_find (c, NULL);
25   if (! flt)
26     exit (1);
27   printf ("%s\n", mflt_name (flt));
28   M17N_FINI ();
29   exit (0);
30 }