uselocale()

Sets a thread-local locale 

Function


SYNOPSIS

#include <locale.h>

locale_t uselocale(locale_t locale);


DESCRIPTION

Specifies the locale for this thread to use. Specifying LC_GLOBAL_LOCALE disables the per-thread locale, while NULL returns the current locale without setting a new one.


RETURN VALUE

Returns the previous locale, or LC_GLOBAL_LOCALE if this thread has no locale associated with it.


Standards Conformance

The function conforms to IEEE Std 1003.1-2008 'POSIX.1'


SEE ALSO

Functions:
duplocale(), freelocale(), localeconv(), newlocale(), querylocale(), xlocale()


PTC MKS Toolkit 10.4 Documentation Build 39.