File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / libiconv / libcharset / tools / locale_monthnames.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 22:57:48 2012 UTC (12 years, 4 months ago) by misho
Branches: libiconv, MAIN
CVS tags: v1_16p0, v1_14p0, v1_14, v1_13_1, HEAD
libiconv

/* Prints the system dependent names for the 12 months in the current locale. */

#define _XOPEN_SOURCE 500  /* Needed on AIX 3.2.5 */

#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#include <langinfo.h>

int main ()
{
  setlocale(LC_ALL, "");
  printf("%s\n", nl_langinfo(MON_1));
  printf("%s\n", nl_langinfo(MON_2));
  printf("%s\n", nl_langinfo(MON_3));
  printf("%s\n", nl_langinfo(MON_4));
  printf("%s\n", nl_langinfo(MON_5));
  printf("%s\n", nl_langinfo(MON_6));
  printf("%s\n", nl_langinfo(MON_7));
  printf("%s\n", nl_langinfo(MON_8));
  printf("%s\n", nl_langinfo(MON_9));
  printf("%s\n", nl_langinfo(MON_10));
  printf("%s\n", nl_langinfo(MON_11));
  printf("%s\n", nl_langinfo(MON_12));
  exit(0);
}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>