C examples for locale.h:localeconv
function
<locale.h> <clocale>
Get locale formatting parameters for quantities
struct lconv* localeconv (void);
none
A pointer to the structure type lconv
#include <stdio.h> #include <locale.h> int main ()/* w w w .j av a2 s. c o m*/ { 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; }