ストリームに1コードを出力する。
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.