Annotation of embedaddon/libiconv/libcharset/tools/locale_monthnames.c, revision 1.1.1.1
1.1 misho 1: /* Prints the system dependent names for the 12 months in the current locale. */
2:
3: #define _XOPEN_SOURCE 500 /* Needed on AIX 3.2.5 */
4:
5: #include <stdio.h>
6: #include <stdlib.h>
7: #include <locale.h>
8: #include <langinfo.h>
9:
10: int main ()
11: {
12: setlocale(LC_ALL, "");
13: printf("%s\n", nl_langinfo(MON_1));
14: printf("%s\n", nl_langinfo(MON_2));
15: printf("%s\n", nl_langinfo(MON_3));
16: printf("%s\n", nl_langinfo(MON_4));
17: printf("%s\n", nl_langinfo(MON_5));
18: printf("%s\n", nl_langinfo(MON_6));
19: printf("%s\n", nl_langinfo(MON_7));
20: printf("%s\n", nl_langinfo(MON_8));
21: printf("%s\n", nl_langinfo(MON_9));
22: printf("%s\n", nl_langinfo(MON_10));
23: printf("%s\n", nl_langinfo(MON_11));
24: printf("%s\n", nl_langinfo(MON_12));
25: exit(0);
26: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>