GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • cpprefjp - C++日本語リファレンス
  • GitHub Project

This view

  • Original page
  • New address

GeezerVison is showing cpprefjp.github.io — std::tmpfile - cpprefjp C++日本語リファレンス

  1. リファレンス
  2. cstdio
  3. tmpfile

最終更新日時: 2025年07月12日 02時16分44秒 (JST)
Koichi Murase が更新

履歴 編集

function
<cstdio>

std::tmpfile

namespace std {
  std::FILE* tmpfile();
}

概要

一時ファイルを生成する。

std::fclose関数を呼び出すと、一時ファイルは自動的に削除される。

通常終了(exit関数やmain関数のreturn文)時には、一時ファイルは自動的に削除される。

それ以外の場合による終了は処理系依存である。

戻り値

成功した場合、一時ファイルを指すファイルストリームを返す。

失敗した場合、NULLを返す。

処理系

  • Clang: ??
  • GCC: ??
  • Visual C++: ??
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.