Facebook Page Twitter Page LinkedIn Page
× C Standard Library

The C <locale.h> localeconv() function is used to obtain a pointer to a static object of lconv type, which represents numeric and monetary formatting rules of the current C locale.


struct lconv* localeconv (void);               


No parameter is required.

Return Value

Returns a pointer to the current lconv type with the corresponding values for the current locale filled in.


The below example shows the usage of localeconv() function.

#include <stdio.h>
#include <locale.h>
int main (){
  setlocale (LC_MONETARY,"en_GB.utf8");
  struct lconv *lc = localeconv();

  printf("Local Currency Symbol: %s\n",
  printf("International Currency Symbol: %s\n",

  return 0;

The output of the above code will be:

Local Currency Symbol: £
International Currency Symbol: GBP 

❮ C <locale.h> Library