setlocale()

This function is hardware-specific implementation. It is not implemented in this Compiler.

Syntax
  #include <locale.h>

  
  char *setlocale(int class, const char *loc);

  
Description

setlocale() changes the program's locale, either all or part of it, depending on class. The character string loc gives the new locale. The following table lists the classes allowed.

Table 1. setlocale() Function Allowable Classes
Class Affected Function
LC_ALL All classes
LC_COLLATE strcoll() and strxfrm() functions
LC_MONETARY Monetary formatting
LC_NUMERIC Numeric formatting
LC_TIME strftime() function
LC_TYPE Character handling and multi-byte character functions
Note: The CodeWarrior IDE supports only the minimum locale C (see locale.h), so this function has no effect.
Return

C, if loc is C or NULL; NULL otherwise.

See also

localeconv()

strcoll()

strftime()

strxfrm()