Time h C Tutorial

Item Value
Header filelocale.h
Declarationchar *setlocale(int type, const char *locale);
Functionset local information
type must be one of the following macros (defined in ):
LC_ALL: refers to all localization categories.
LC_COLLATE: affects the operation of the strcoll() function.
LC_CTYPE: alters the way the character functions work.
LC_MONETARY: determines the monetary format.
LC_NUMERIC: changes the decimal-point character for formatted input/output functions.
LC_TIME: determines the behavior of the strftime() function.
The setlocale() function returns a pointer to a string associated with the type parameter.
Display the current locale setting:

#include 
  #include 
  int main(void)
  {
    printf(setlocale(LC_ALL, ""));
    return 0;
  }
C