名前空間
変種
操作

「cpp/io/c/ungetc」の版間の差分

提供: cppreference.com
< cpp‎ | io‎ | c
(r2.7.3) (ロボットによる 追加: en:cpp/io/c/ungetc, fr:cpp/io/c/ungetc, zh:cpp/io/c/ungetc)
(Translated from the English version using Google Translate)
1行: 1行:
{{title|ungetc}}
+
{{
Syntax:
+
title| ungetc}}
 +
 +
 +
 +
 +
  
<syntaxhighlight lang="cpp">
+
=
    #include <cstdio>
+
    int ungetc( int 文字, FILE *ストリーム );
+
</syntaxhighlight>
+
 +
  
ungetc()関数は、'文字'で指定された文字をストリームに書き戻します。
+
 +
  
関連トピック: [[cpp/io/c/getc | getc]], [[cpp/io/putback | (C++ I/O) putback]]
+
 +
 
 +
 +
 +
cpp/io/c/
 +
| /io/
 +
  
[[en:cpp/io/c/ungetc]]
 
 
[[fr:cpp/io/c/ungetc]]
 
[[fr:cpp/io/c/ungetc]]
 +
 
[[zh:cpp/io/c/ungetc]]
 
[[zh:cpp/io/c/ungetc]]

2012年10月26日 (金) 07:00時点における版

 
 
入出力ライブラリ
入出力マニピュレータ
Cスタイルの入出力
バッファ
(C++98で非推奨)
ストリーム
抽象
ファイル入出力
文字列入出力
配列入出力
(C++98で非推奨)
(C++98で非推奨)
(C++98で非推奨)
同期化出力
エラーカテゴリインタフェース
(C++11)
 
C スタイルの入出力
型とオブジェクト
関数
ファイルアクセス
直接入出力
書式なし入出力
(C++14未満)
ungetc
書式付き入力
 
ヘッダ <cstdio> で定義
int ungetc( int ch, FILE *stream );
与えられたファイルストリームに戻す文字chを置く​​.
Original:
Puts the character ch back to the given file stream.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

パラメータ

ch -
戻される文字
Original:
character to be put back
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
stream -
背中に文字を入れて流れを起こす
Original:
file stream to put the character back to
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

値を返します

成功chに返されます.
Original:
On success ch is returned.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
障害EOFに返され、指定されたストリームは変更されません.
Original:
On failure EOF is returned and the given stream remains unchanged.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

も参照してください

テンプレート:cpp/io/c/dcl list fgetc
C documentation for ungetc