最終更新日時:
が更新

履歴 編集

function
<cwchar>

std::fputws

namespace std {
  int fputws(const wchar_t* s, FILE* stream);
}

概要

ファイルストリームに文字列を出力する。

戻り値

成功した場合は非負の値を返す。エラーが発生した場合はWEOFを返す。

備考

  • std::fputs()と同じく、終端のヌル文字は出力されず、改行も追加されない

#include <cwchar>
#include <cstdio>

int main()
{
  std::fputws(L"hello\n", stdout);
}

出力

hello

バージョン

言語

  • C++98

関連項目