Changes the default locale of the C program. setlocale(int localetype, const char* locale)

LocaleType

A Enum where:

  • 1: LC_ALL
  • 2: LC_COLLTE
  • 3: LC_CTYPE
  • 4: LC_MONETARY
  • 5: LC_NUMERIC
  • 6: LC_TIME

Locale

A string And locale is: