Skip to content

Commit 02a9715

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 887a659 commit 02a9715

File tree

3 files changed

+33
-33
lines changed

3 files changed

+33
-33
lines changed

reference/cstdlib/getenv.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@
188188

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2025-07-05T09:21:18">
192-
2025年07月05日 09時21分18秒
191+
<span itemprop="datePublished" content="2025-07-05T16:39:11">
192+
2025年07月05日 16時39分11秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -222,7 +222,7 @@ <h2>返り値</h2>
222222
<p>一致したものがあれば環境変数を保持した文字列、なければヌルポインタを返す</p>
223223
<h2>備考</h2>
224224
<p>C++11以前は、他の関数でホスト環境が変更されなければ、この関数はスレッドセーフである。(他のスレッドで呼び出された場合でも)</p>
225-
<p>C++11以降では、<code>getenv</code>が返す文字列を変更すると<a class="cpprefjp-defined-word" data-desc="未定義の動作。処理系は予期せぬ動作をする可能性がある。要するに動作保証対象外。undefined behavior (UB)。" href="../../implementation-compliance.html#dfn-undefined-behavior">未定義動作</a>となる</p>
225+
<p>C++11以降では、<code>getenv</code>が返す文字列を変更したときの<a class="cpprefjp-defined-word" data-desc="未定義の動作。処理系は予期せぬ動作をする可能性がある。要するに動作保証対象外。undefined behavior (UB)。" href="../../implementation-compliance.html#dfn-undefined-behavior">動作は未定義</a>である</p>
226226
<h2></h2>
227227
<p><div class="yata" id="9c8563f23c5139a9e7e243722957c9f7ce8c37f8"><div class="codehilite"><pre><span></span><code><span class="cp">#include</span> <span class="cpf"><a href="../cstdlib.html">&lt;cstdlib&gt;</a></span><span class="cp"></span>
228228
<span class="cp">#include</span> <span class="cpf"><a href="../iostream.html">&lt;iostream&gt;</a></span><span class="cp"></span>

rss.xml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,37 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<title>cpprefjp - C++日本語リファレンス</title>
44
<link href="https://cpprefjp.github.io" />
5-
<updated>2025-07-05T14:45:39.284960</updated>
6-
<id>7fef00bd-41a9-491f-b49a-f7c18377e278</id>
5+
<updated>2025-07-05T16:43:09.288150</updated>
6+
<id>30f0f22c-f775-443b-8a5c-675c4efa4846</id>
77

88

9+
<entry>
10+
<title>getenv -- Update getenv.md</title>
11+
<link href="https://cpprefjp.github.io/reference/cstdlib/getenv.html"/>
12+
<id>5d24dd2270f135533b37459dccb29642007e68af:reference/cstdlib/getenv.md</id>
13+
<updated>2025-07-06T01:39:11+09:00</updated>
14+
15+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/cstdlib/getenv.md b/reference/cstdlib/getenv.md
16+
index 3d0f60cf4..32b64c2fb 100644
17+
--- a/reference/cstdlib/getenv.md
18+
+++ b/reference/cstdlib/getenv.md
19+
@@ -19,7 +19,7 @@ char* getenv( const char* env_var );
20+
21+
C++11以前は、他の関数でホスト環境が変更されなければ、この関数はスレッドセーフである。(他のスレッドで呼び出された場合でも)
22+
23+
-C++11以降では、`getenv`が返す文字列を変更すると未定義動作となる。
24+
+C++11以降では、`getenv`が返す文字列を変更したときの動作は未定義である。
25+
26+
## 例
27+
```cpp example
28+
&lt;/code&gt;&lt;/pre&gt;</summary>
29+
30+
<author>
31+
<name>K10-K10</name>
32+
<email>[email protected]</email>
33+
</author>
34+
</entry>
35+
936
<entry>
1037
<title>atof -- 不要スペースの削除</title>
1138
<link href="https://cpprefjp.github.io/reference/cstdlib/atof.html"/>
@@ -513,31 +540,4 @@ index 000000000..5d0b3ee9d
513540
</author>
514541
</entry>
515542

516-
<entry>
517-
<title>atoi,atol,atoll -- cstdlib/atoi..:バージョン表記に変更</title>
518-
<link href="https://cpprefjp.github.io/reference/cstdlib/atoi_atol_atoll.html"/>
519-
<id>f7d4f261f6a54c5c2fbc2116d2ebfc1c978a6805:reference/cstdlib/atoi_atol_atoll.md</id>
520-
<updated>2025-07-05T22:20:46+09:00</updated>
521-
522-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/cstdlib/atoi_atol_atoll.md b/reference/cstdlib/atoi_atol_atoll.md
523-
index 5cf9fef00..638bfd6ac 100644
524-
--- a/reference/cstdlib/atoi_atol_atoll.md
525-
+++ b/reference/cstdlib/atoi_atol_atoll.md
526-
@@ -60,7 +60,7 @@ int main(void)
527-
-2147483648
528-
```
529-
530-
-## 処理系
531-
+## バージョン
532-
### 処理系
533-
- Clang: ?
534-
- GCC: 13[mark verified]
535-
&lt;/code&gt;&lt;/pre&gt;</summary>
536-
537-
<author>
538-
<name>K10-K10</name>
539-
<email>[email protected]</email>
540-
</author>
541-
</entry>
542-
543543
</feed>

sitemap.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31349,7 +31349,7 @@
3134931349

3135031350
<url>
3135131351
<loc>https://cpprefjp.github.io/reference/cstdlib/getenv.html</loc>
31352-
<lastmod>2025-07-05T18:21:18+09:00</lastmod>
31352+
<lastmod>2025-07-06T01:39:11+09:00</lastmod>
3135331353
<changefreq>daily</changefreq>
3135431354
<priority>0.7</priority>
3135531355
</url>

0 commit comments

Comments
 (0)