[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
setlocale

Query or set locale information for the C compiler.
Compatibility:
This function is compatible with the following targets:
Prototype:
#include <locale.h>
char *setlocale(
  int category,
  const char *locale);
Parameters:
Parameters for this facility are:
Remarks :
The category argument specifies the part of the C compiler to query or set.
The argument can have one of six values defined as macros in locale.h: LC_ALL for all aspects, LC_COLLATE for the collating function strcoll(), LC_CTYPE for ctype.h functions and the multibyte conversion functions in stdlib.h, LC_MONETARY for monetary formatting, LC_NUMERIC for numeric formatting, and LC_TIME for time and date formatting.
If the locale argument is a null pointer or an empty string, a query is made. The setlocale() function returns a pointer to a character string indicating which locale the specified compiler part is set to. The Metrowerks C compiler supports the "C" locale.
Attempting to set a part of the Metrowerks C compiler's locale will have no effect.
See Also:
"strcoll"
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 16, 2000