イフコンピュータ > MINERVA > マニュアル > レファレンス > 述語 > 文字入出力 > put_code/1/2

put_code/1/2

MINERVA
ifcomputer logo
f
Expert Services on the Web

ストリームに1コードを出力する。

put_code(+コード)
put_code(+ストリーム, +コード)

put_code/1 は、現在出力ストリームに1コードを出力する。

put_code/2 第1引数の名前のストリームに1コードを出力する。

引数

ストリーム               出力テキストストリーム
コード                   整数 (文字コード)

ストリーム S の内容は abcdefgで、 ストリーム位置は、最後の文字 にあるとする。

put_code(S, 0'h). 成功. ストリーム S の内容は、abcdefghである。

標準

これらの述語は、ISO-Prolog 標準に含まれる。

関連

get_char/1/2, get_code/1/2, peek_char/1/2, peek_code/1/2, put_char/1/2, nl/0/1, current_output/1, set_output/1.

document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/char_io/put_code/print_jp.html
published 2008/10/6 update 2001/8/28 (c) 1996-2006 IF Computer Japan
IF Computer 〒113-0022 Tel 03-5814-3352 start (AT) ifcomputer.com
Customer Support 東京都文京区千駄木5-28-2   http://www.ifcomputer.co.jp
戻る> managed with ubiCMS