localeconv - C locale.h

C examples for locale.h:localeconv

type

function

From


<locale.h>
<clocale>

Description

Get locale formatting parameters for quantities

Prototype

struct lconv* localeconv (void);

Parameters

none

Return Value

A pointer to the structure type lconv

Demo Code


#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;
}

Related Tutorials