* sysdeps/m68k/fpu/bits/mathinline.h: Don't define log2 as inline.
[glibc/pb-stable.git] / catgets / test-gencat.c
blobfe5d0916b7ad251934b7ffd020990f583679758a
1 #include <locale.h>
2 #include <nl_types.h>
3 #include <stdio.h>
4 #include <stdlib.h>
6 int
7 main (void)
9 nl_catd catalog;
10 setlocale (LC_ALL, "");
12 printf ("LC_MESSAGES = %s\n", setlocale (LC_MESSAGES, NULL));
14 catalog = catopen ("sample", NL_CAT_LOCALE);
15 printf ("%s\n", catgets(catalog, 1, 1, "sample 1"));
16 printf ("%s\n", catgets(catalog, 1, 2, "sample 2"));
17 printf ("%s\n", catgets(catalog, 1, 3, "sample 3"));
18 printf ("%s\n", catgets(catalog, 1, 4, "sample 4"));
19 printf ("%s\n", catgets(catalog, 1, 5, "sample 5"));
20 catclose (catalog);
22 return 0;