C localization functions: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 17:
#include <locale.h>
 
int main(void)
main(void)
{
/* Locale is set to "C" before this. This call sets it
Line 26 ⟶ 25:
const struct lconv * const currentlocale = localeconv();
 
printf("In the current locale, the default currency symbol is: %s\n",
printf
currentlocale->currency_symbol);
(
"In the current locale, the default currency symbol is: %s\n",
currentlocale->currency_symbol
);
 
return EXIT_SUCCESS;