共用方式為


_get_current_locale

取得表示目前地區設定的地區設定物件。

_locale_t _get_current_locale(void);

傳回值

表示目前地區設定的地區設定物件。

備註

_get_current_locale函式加入至執行緒的目前設定的地區設定並傳回表示該地區設定的地區設定物件。

這個函式__get_current_locale 先前的名稱 (與兩個前置底線) 已被取代。

需求

常式

必要的標頭

_get_current_locale

<locale.h - 地區設定>

如需更多關於相容性的資訊,請參閱入門介紹中的 相容性 (Compatibility)

.NET Framework 對等用法

沒有對等用法。

請參閱

參考

setlocale、_wsetlocale

_create_locale、_wcreate_locale

_free_locale