We recommend using Visual Studio 2017

___lc_codepage_func

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at ___lc_codepage_func.

Internal CRT function. Retrieves the current code page of the thread.

UINT ___lc_codepage_func(void);  

The current code page of the thread.

___lc_codepage_func is an internal CRT function that is used by other CRT functions to get the current code page from the thread local storage for CRT data. This information is also available by using the _get_current_locale function.

A code page is a mapping of single-byte or double-byte codes to individual characters. Different code pages include different special characters, typically customized for a language or a group of languages. For more information about code pages, see Code Pages.

Internal CRT functions are implementation-specific and subject to change with each release. We don't recommend their use in your code.

RoutineRequired header
___lc_codepage_funccrt\src\setlocal.h

_get_current_locale
setlocale, _wsetlocale
_create_locale, _wcreate_locale
_free_locale

Show: