setlocale()

This is a Hardware specific function. It is not implemented in the Compiler.

Syntax
  #include <locale.h>

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

  
Description

setlocale() changes all or part of the program's locale, depending on class. The new locale is given by the character string loc. The classes allowed are given in the following table.

Table 1. Allowable classes for the setlocale() function
Class Affected portion of program locale
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

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(), and

strxfrm()