IF Computer > MINERVA > Manual > Reference > Predicates > Character input/output > put_code/1/2

put_code/1/2

MINERVA
ifcomputer logo
f
Expert Services on the Web

outputs a single character to a stream.

put_code(+Code)
put_code(+Stream, +Code)

put_code/1 outputs a single character to the current outputstream.

put_code/2 outputs a single character to the stream named in the first argument.

Arguments

Stream                 output text stream
Code                   integer (character code)

Examples

Assume the content of a stream S is abcdefg and the stream position is behind the last character.

put_code(S, 0'h). Succeeds. The content of stream S is now abcdefgh.

Standard

These predicates are part of the ISO-Prolog Standard.

See also

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_en.html
published 2012/2/6 update 2001/8/28 (c) 1996-2009 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 start (AT) ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
Back> managed with ubiCMS