Skip to content

Commit cef2a2c

Browse files
authored
Update setlocale.md
1 parent 1cf31ac commit cef2a2c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

reference/clocale/setlocale.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,17 @@ namespace std {
1414
1515
指定できる処理系定義のロケール文字列は[使用できるロケール文字列](/article/platform/locales.md)を参照のこと。
1616
17+
この関数の呼び出しは他スレッドにおける `setlocale()` または現在のロケールを使用する他の関数の呼び出しとデータ競合の可能性がある。
18+
19+
プログラム開始時の現在のロケールは `std::setlocale(LC_ALL, "C");` が呼び出されたのと同じ状態に初期化される。
20+
1721
## 引数
1822
- `category`:設定対象のカテゴリ。`LC_ALL`,`LC_CTYPE`などのマクロを使用。
1923
- `locale`:
2024
* `"C"`:標準のCロケール
2125
* `""`:環境依存のデフォルトロケール
2226
* `NULL`:現在のロケールを取得するだけ
27+
* 処置系定義の文字列
2328
2429
## 戻り値
2530
成功時は設定されたロケール名(文字列)、失敗時は`NULL`。

0 commit comments

Comments
 (0)