File tree Expand file tree Collapse file tree 3 files changed +32
-2
lines changed
Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 4141| ------| ------| ----------------|
4242| [ ` remove ` ] ( /reference/cstdio/remove.md ) | ファイルを削除する | |
4343| [ ` rename ` ] ( /reference/cstdio/rename.md ) | ファイル名を変更、ファイルを移動する | |
44- | [ ` tmpfile ` ] ( /reference/cstdio/tmpfile.md.nolink ) | 一時ファイルを生成する | |
44+ | [ ` tmpfile ` ] ( /reference/cstdio/tmpfile.md ) | 一時ファイルを生成する | |
4545| [ ` tempname ` ] ( /reference/cstdio/tempname.md.nolink ) | 一時ファイル名を生成する | |
4646| [ ` fclose ` ] ( /reference/cstdio/fclose.md.nolink ) | ファイルを閉じる | |
4747| [ ` fopen ` ] ( /reference/cstdio/fopen.md.nolink ) | ファイルを開く | |
Original file line number Diff line number Diff line change 1+ # tmpfile
2+ * cstdio[ meta header]
3+ * std[ meta namespace]
4+ * function[ meta id-type]
5+
6+ ``` cpp
7+ std::FILE* tmpfile ();
8+ ```
9+
10+ ## 概要
11+ 一時ファイルを生成する。
12+
13+ [ ` std::fclose ` ] ( /reference/cstdio/fclose.md.nolink ) 関数を呼び出すと、一時ファイルは自動的に削除される。
14+
15+ 通常終了([ ` exit ` ] ( /reference/cstdlib/exit.md ) 関数や` main ` 関数のreturn文)時には、一時ファイルは自動的に削除される。
16+
17+ それ以外の場合による終了は処理系依存である。
18+
19+ ## 戻り値
20+ 成功した場合、一時ファイルを指すファイルストリームを返す。
21+
22+ 失敗した場合、` NULL ` を返す。
23+
24+ ## 処理系
25+
26+ - [ Clang] ( /implementation.md#clang ) : ??
27+ - [ GCC] ( /implementation.md#gcc ) : ??
28+ - [ Visual C++] ( /implementation.md#visual_cpp ) : ??
29+
30+
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ namespace std {
29294. 全てのCストリームが破棄される。
3030 - まだ書き出されていないバッファリングされたデータはフラッシュされる。
3131 - ストリームが閉じられる。
32- - [`tmpfile()`](/reference/cstdio/tmpfile.md.nolink )関数の呼び出しで作成された一時ファイルが削除される。
32+ - [`tmpfile()`](/reference/cstdio/tmpfile.md)関数の呼び出しで作成された一時ファイルが削除される。
33335. ホスト環境に制御が戻される。
3434 - パラメータ`status`の値が`0`もしくは[`EXIT_SUCCESS`](exit_success.md)であった場合、実装依存の正常終了値が返る。
3535 - パラメータ`status`の値が[`EXIT_FAILURE`](exit_failure.md)であった場合、実装依存の異常終了値が返る。
You can’t perform that action at this time.
0 commit comments