2
2
<feed xmlns =" http://www.w3.org/2005/Atom" >
3
3
<title >cpprefjp - C++日本語リファレンス</title >
4
4
<link href =" https://cpprefjp.github.io" />
5
- <updated >2025-07-05T11:19:22.165100 </updated >
6
- <id >c7e4dc48-c878-4414-919e-98f70a9b897f </id >
5
+ <updated >2025-07-05T11:31:05.861205 </updated >
6
+ <id >a356cce8-0760-4261-a3d5-a872d236f58e </id >
7
7
8
8
9
+ <entry >
10
+ <title >atoi,atol,atoll -- 不要文字の削除</title >
11
+ <link href =" https://cpprefjp.github.io/reference/cstdlib/atoi_atol_atoll.html" />
12
+ <id >a086c7ffb9647ea30f3db83023cf3a76e8ba2c4a:reference/cstdlib/atoi_atol_atoll.md</id >
13
+ <updated >2025-07-05T20:26:53+09:00</updated >
14
+
15
+ <summary type =" html" >< pre>< code> diff --git a/reference/cstdlib/atoi_atol_atoll.md b/reference/cstdlib/atoi_atol_atoll.md
16
+ index d8e856ad5..7d31e88ec 100644
17
+ --- a/reference/cstdlib/atoi_atol_atoll.md
18
+ +++ b/reference/cstdlib/atoi_atol_atoll.md
19
+ @@ -19,10 +19,10 @@ long long atoll( const char* str );
20
+
21
+ 空白文字から始まる場合、最初の非空白文字から変換する。
22
+
23
+ -\+ ,\-は変換後の符号に適用される。
24
+ +\+ 、\-は変換後の符号に適用される。
25
+
26
+
27
+ -変換不可能ならば0を返す.。
28
+ +変換不可能ならば0を返す。
29
+
30
+ ## 備考
31
+
32
+ < /code>< /pre> </summary >
33
+
34
+ <author >
35
+ <name >K10-K10</name >
36
+
37
+ </author >
38
+ </entry >
39
+
9
40
<entry >
10
41
<title >atoi,atol,atoll -- fix head size</title >
11
42
<link href =" https://cpprefjp.github.io/reference/cstdlib/atoi_atol_atoll.html" />
@@ -806,64 +837,4 @@ index 000000000..28413ac13
806
837
</author >
807
838
</entry >
808
839
809
- <entry >
810
- <title >getenv -- new page cstdlib/getenv</title >
811
- <link href =" https://cpprefjp.github.io/reference/cstdlib/getenv.html" />
812
- <id >52760d224783a840dc206dbf2a7b76bdcd31cf1e:reference/cstdlib/getenv.md</id >
813
- <updated >2025-07-05T18:21:18+09:00</updated >
814
-
815
- <summary type =" html" >< pre>< code> diff --git a/reference/cstdlib/getenv.md b/reference/cstdlib/getenv.md
816
- new file mode 100644
817
- index 000000000..3d0f60cf4
818
- --- /dev/null
819
- +++ b/reference/cstdlib/getenv.md
820
- @@ -0,0 +1,40 @@
821
- +# getenv
822
- +* cstdlib[meta header]
823
- +* std[meta namespace]
824
- +* function[meta id-type]
825
- +
826
- +```cpp
827
- +char* getenv( const char* env_var );
828
- +```
829
- +
830
- +## 概要
831
- +
832
- +ホスト環境(OS)が提供する環境リストから、Cストリング`env_var`と一致する文字列を検索、一致したもののポインタを返す
833
- +
834
- +## 返り値
835
- +
836
- +一致したものがあれば環境変数を保持した文字列、なければヌルポインタを返す
837
- +
838
- +## 備考
839
- +
840
- +C++11以前は、他の関数でホスト環境が変更されなければ、この関数はスレッドセーフである。(他のスレッドで呼び出された場合でも)
841
- +
842
- +C++11以降では、`getenv`が返す文字列を変更すると未定義動作となる。
843
- +
844
- +## 例
845
- +```cpp example
846
- +#include & lt;cstdlib& gt;
847
- +#include & lt;iostream& gt;
848
- +
849
- +int main()
850
- +{
851
- + if (const char* env_p = std::getenv(& #34;PATH& #34;))
852
- + std::cout & lt;& lt; & #34;Your PATH is: & #34; & lt;& lt; env_p & lt;& lt; & #39;\n& #39;;
853
- +}
854
- +```
855
- +
856
- +## 出力結果
857
- +```
858
- +Your PATH is: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
859
- +```
860
- +
861
- < /code>< /pre> </summary >
862
-
863
- <author >
864
- <name >K10-K10</name >
865
-
866
- </author >
867
- </entry >
868
-
869
840
</feed >
0 commit comments