Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

Standard library header <clocale>

This header was originally in the C standard library as <locale.h>.

NotebookLM

This header was originally in the C standard library as <locale.h>.

This header is part of the text processing library.

Types

formatting details, returned by std::localeconv
(class)

Constants

implementation-defined null pointer constant
(macro constant)
locale categories for std::setlocale
(macro constant)

Functions

gets and sets the current C locale
(function)
queries numeric and monetary formatting details of the current locale
(function)

Synopsis

snippet.cpp
namespace std {
  struct lconv;
 
  char* setlocale(int category, const char* locale);
  lconv* localeconv();
}
 
#define NULL        /* see description */
#define LC_ALL      /* see description */
#define LC_COLLATE  /* see description */
#define LC_CTYPE    /* see description */
#define LC_MONETARY /* see description */
#define LC_NUMERIC  /* see description */
#define LC_TIME     /* see description */

Notes

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.