1 2 3 4 5 6 7 8 9 10 11 12 13
|
/* localeconv example */
#include <stdio.h> /* printf */
#include <locale.h> /* setlocale, LC_MONETARY, struct lconv, localeconv */
int main ()
{
setlocale (LC_MONETARY,"");
struct lconv * lc;
lc=localeconv();
printf ("Local Currency Symbol: %s\n",lc->currency_symbol);
printf ("International Currency Symbol: %s\n",lc->int_curr_symbol);
return 0;
}
|