Skip to content

Commit b810796

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 45f6d4b commit b810796

File tree

3 files changed

+36
-90
lines changed

3 files changed

+36
-90
lines changed

reference/cstdio/tmpnam.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
</head>
7070
<body>
71-
<header data-kunai-mdinfo="{&#34;meta&#34;: {&#34;header&#34;: [&#34;cstdio&#34;], &#34;namespace&#34;: [&#34;std&#34;], &#34;id-type&#34;: [&#34;function&#34;]}, &#34;sources&#34;: [{&#34;id&#34;: &#34;6ef226ce938b6ee93f604437a18faeb8b2a7905a&#34;, &#34;source&#34;: &#34;#include &lt;cstdio&gt;\n#include &lt;iostream&gt;\n\nint main() {\n char filename[1000];\n if (std::tmpnam(filename)) {\n std::cout &lt;&lt; \&#34;Generated filename: \&#34; &lt;&lt; filename &lt;&lt; &#39;\\n&#39;;\n // \u3053\u3053\u3067 fopen(filename, \&#34;w\&#34;) \u3068\u304b\u3057\u3066\u4f7f\u3046\uff08\u304c\u3001\u3042\u307e\u308a\u63a8\u5968\u3055\u308c\u306a\u3044\uff09\n } else {\n std::cerr &lt;&lt; \&#34;Failed to generate temp name\\n\&#34;;\n }\n}\n&#34;}], &#34;page_id&#34;: [&#34;reference&#34;, &#34;cstdio&#34;, &#34;tmpnam&#34;]}">
71+
<header data-kunai-mdinfo="{&#34;meta&#34;: {&#34;header&#34;: [&#34;cstdio&#34;], &#34;namespace&#34;: [&#34;std&#34;], &#34;id-type&#34;: [&#34;function&#34;]}, &#34;sources&#34;: [{&#34;id&#34;: &#34;ee253582114e906248a1e5cfe4cad4c3342a381b&#34;, &#34;source&#34;: &#34;#include &lt;cstdio&gt;\n#include &lt;iostream&gt;\n\nint main() {\n char filename[L_tmpnam];\n if (std::tmpnam(filename)) {\n std::cout &lt;&lt; \&#34;Generated filename: \&#34; &lt;&lt; filename &lt;&lt; &#39;\\n&#39;;\n // \u3053\u3053\u3067 fopen(filename, \&#34;w\&#34;) \u3068\u304b\u3057\u3066\u4f7f\u3046\uff08\u304c\u3001\u3042\u307e\u308a\u63a8\u5968\u3055\u308c\u306a\u3044\uff09\n } else {\n std::cerr &lt;&lt; \&#34;Failed to generate temp name\\n\&#34;;\n }\n}\n&#34;}], &#34;page_id&#34;: [&#34;reference&#34;, &#34;cstdio&#34;, &#34;tmpnam&#34;]}">
7272
<nav class="navbar navbar-default" role="navigation">
7373
<div class="container-fluid">
7474
<div class="navbar-header">
@@ -188,12 +188,12 @@
188188

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2025-07-11T17:16:44">
192-
2025年07月11日 17時16分44秒
191+
<span itemprop="datePublished" content="2025-07-13T14:53:14">
192+
2025年07月13日 14時53分14秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
196-
<span itemprop="name">Koichi Murase</span>
196+
<span itemprop="name">rotarymars</span>
197197
</span>
198198
が更新
199199
</small></p>
@@ -231,11 +231,11 @@ <h2><a class="cpprefjp-defined-word" data-desc="関数呼び出し式の評価
231231
</ul>
232232
<p>失敗した場合、<code>NULL</code>を返す。</p>
233233
<h2></h2>
234-
<p><div class="yata" id="6ef226ce938b6ee93f604437a18faeb8b2a7905a"><div class="codehilite"><pre><span></span><code><span class="cp">#include</span> <span class="cpf"><a href="../cstdio.html">&lt;cstdio&gt;</a></span><span class="cp"></span>
234+
<p><div class="yata" id="ee253582114e906248a1e5cfe4cad4c3342a381b"><div class="codehilite"><pre><span></span><code><span class="cp">#include</span> <span class="cpf"><a href="../cstdio.html">&lt;cstdio&gt;</a></span><span class="cp"></span>
235235
<span class="cp">#include</span> <span class="cpf"><a href="../iostream.html">&lt;iostream&gt;</a></span><span class="cp"></span>
236236

237237
<span class="kt">int</span> <span class="nf">main</span><span class="p">()</span> <span class="p">{</span>
238-
<span class="kt">char</span> <span class="n">filename</span><span class="p">[</span><span class="mi">1000</span><span class="p">];</span>
238+
<span class="kt">char</span> <span class="n">filename</span><span class="p">[</span><span class="n">L_tmpnam</span><span class="p">];</span>
239239
<span class="k">if</span> <span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">tmpnam</span><span class="p">(</span><span class="n">filename</span><span class="p">))</span> <span class="p">{</span>
240240
<span class="n"><a href="../iostream/cout.html">std::cout</a></span> <span class="o">&lt;&lt;</span> <span class="s">"Generated filename: "</span> <span class="o">&lt;&lt;</span> <span class="n">filename</span> <span class="o">&lt;&lt;</span> <span class="sc">'\n'</span><span class="p">;</span>
241241
<span class="c1">// ここで fopen(filename, "w") とかして使う(が、あまり推奨されない)</span>

rss.xml

Lines changed: 29 additions & 83 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-13T14:44:48.417031</updated>
6-
<id>9147768b-c40e-4865-8d3f-b813219ea3ee</id>
5+
<updated>2025-07-13T14:57:06.730453</updated>
6+
<id>d337cdbd-9edc-4595-b63e-59d1aca933d7</id>
77

88

9+
<entry>
10+
<title>tmpnam -- fixed inappropriate code in `tmpnam.md`</title>
11+
<link href="https://cpprefjp.github.io/reference/cstdio/tmpnam.html"/>
12+
<id>116c20ad12e92ea2afe704367730ad60b281ca91:reference/cstdio/tmpnam.md</id>
13+
<updated>2025-07-13T23:53:14+09:00</updated>
14+
15+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/cstdio/tmpnam.md b/reference/cstdio/tmpnam.md
16+
index ad26323a4..7adeb5fae 100644
17+
--- a/reference/cstdio/tmpnam.md
18+
+++ b/reference/cstdio/tmpnam.md
19+
@@ -31,7 +31,7 @@ namespace std {
20+
#include &amp;lt;iostream&amp;gt;
21+
22+
int main() {
23+
- char filename[1000];
24+
+ char filename[L_tmpnam];
25+
if (std::tmpnam(filename)) {
26+
std::cout &amp;lt;&amp;lt; &amp;#34;Generated filename: &amp;#34; &amp;lt;&amp;lt; filename &amp;lt;&amp;lt; &amp;#39;\n&amp;#39;;
27+
// ここで fopen(filename, &amp;#34;w&amp;#34;) とかして使う(が、あまり推奨されない)
28+
&lt;/code&gt;&lt;/pre&gt;</summary>
29+
30+
<author>
31+
<name>rotarymars</name>
32+
<email>[email protected]</email>
33+
</author>
34+
</entry>
35+
936
<entry>
1037
<title>EOF -- fixed inappropriate code</title>
1138
<link href="https://cpprefjp.github.io/reference/cstdio/eof.html"/>
@@ -476,85 +503,4 @@ index 000000000..21450cdb3
476503
</author>
477504
</entry>
478505

479-
<entry>
480-
<title>EOF -- implementation defined を implementation-defined に変更</title>
481-
<link href="https://cpprefjp.github.io/reference/cstdio/eof.html"/>
482-
<id>cfe143235a01e9c082afc75a97b106af47d465ad:reference/cstdio/eof.md</id>
483-
<updated>2025-07-13T12:32:51+09:00</updated>
484-
485-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/cstdio/eof.md b/reference/cstdio/eof.md
486-
index 231b8689a..b603c81a1 100644
487-
--- a/reference/cstdio/eof.md
488-
+++ b/reference/cstdio/eof.md
489-
@@ -3,7 +3,7 @@
490-
* macro[meta id-type]
491-
492-
```cpp
493-
-#define EOF /* implementation defined */
494-
+#define EOF /* implementation-defined */
495-
```
496-
497-
## 概要
498-
&lt;/code&gt;&lt;/pre&gt;</summary>
499-
500-
<author>
501-
<name>Raclamusi</name>
502-
<email>[email protected]</email>
503-
</author>
504-
</entry>
505-
506-
<entry>
507-
<title>FILENAME_MAX -- implementation defined を implementation-defined に変更</title>
508-
<link href="https://cpprefjp.github.io/reference/cstdio/filename_max.html"/>
509-
<id>cfe143235a01e9c082afc75a97b106af47d465ad:reference/cstdio/filename_max.md</id>
510-
<updated>2025-07-13T12:32:51+09:00</updated>
511-
512-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/cstdio/filename_max.md b/reference/cstdio/filename_max.md
513-
index 172e3013e..9e45023ca 100644
514-
--- a/reference/cstdio/filename_max.md
515-
+++ b/reference/cstdio/filename_max.md
516-
@@ -3,7 +3,7 @@
517-
* macro[meta id-type]
518-
519-
```cpp
520-
-#define FILENAME_MAX /* implementation defined */
521-
+#define FILENAME_MAX /* implementation-defined */
522-
```
523-
524-
## 概要
525-
&lt;/code&gt;&lt;/pre&gt;</summary>
526-
527-
<author>
528-
<name>Raclamusi</name>
529-
<email>[email protected]</email>
530-
</author>
531-
</entry>
532-
533-
<entry>
534-
<title>RAND_MAX -- implementation defined を implementation-defined に変更</title>
535-
<link href="https://cpprefjp.github.io/reference/cstdlib/rand_max.html"/>
536-
<id>cfe143235a01e9c082afc75a97b106af47d465ad:reference/cstdlib/rand_max.md</id>
537-
<updated>2025-07-13T12:32:51+09:00</updated>
538-
539-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/cstdlib/rand_max.md b/reference/cstdlib/rand_max.md
540-
index cbb6ba54b..5566d9d52 100644
541-
--- a/reference/cstdlib/rand_max.md
542-
+++ b/reference/cstdlib/rand_max.md
543-
@@ -3,7 +3,7 @@
544-
* macro[meta id-type]
545-
546-
```cpp
547-
-#define RAND_MAX /*implementation defined*/
548-
+#define RAND_MAX /*implementation-defined*/
549-
```
550-
551-
## 概要
552-
&lt;/code&gt;&lt;/pre&gt;</summary>
553-
554-
<author>
555-
<name>Raclamusi</name>
556-
<email>[email protected]</email>
557-
</author>
558-
</entry>
559-
560506
</feed>

sitemap.xml

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

2666026660
<url>
2666126661
<loc>https://cpprefjp.github.io/reference/cstdio/tmpnam.html</loc>
26662-
<lastmod>2025-07-12T02:16:44+09:00</lastmod>
26662+
<lastmod>2025-07-13T23:53:14+09:00</lastmod>
2666326663
<changefreq>daily</changefreq>
2666426664
<priority>0.7</priority>
2666526665
</url>

0 commit comments

Comments
 (0)