wolffor.blogg.se

Microsoft c runtime library
Microsoft c runtime library








microsoft c runtime library

If per_thread_locale_type isn't one of the values listed in the table, this function invokes the invalid parameter handler, as described in Parameter Validation. If you use _configthreadlocale to enable a per-thread locale, we recommend that you call setlocale or _wsetlocale to set the preferred locale in that thread immediately afterward. When per-thread locale is enabled, setlocale or _wsetlocale only affects the current thread's locale. When per-thread locale is disabled, any subsequent call to setlocale or _wsetlocale changes the locale of all threads that use the global locale. These functions affect the behavior of setlocale, _tsetlocale, _wsetlocale, and _setmbcp. Retrieves the current setting for this particular thread. Subsequent calls to setlocale in this thread affect other threads using the global locale. Make the current thread use the global locale. Subsequent calls to setlocale in this thread affect only the thread's own locale. Make the current thread use a thread-specific locale. Use one of these per_thread_locale_type options to specify or determine the per-thread locale status: Option The _configthreadlocale function is used to control the use of thread-specific locales. The previous per-thread locale status ( _DISABLE_PER_THREAD_LOCALE or _ENABLE_PER_THREAD_LOCALE), or -1 on failure. One of the options listed in the following table.

microsoft c runtime library

Syntax int _configthreadlocale( int per_thread_locale_type )










Microsoft c runtime library