BAP Online Manuals : Library Reference : Library by Name : put
Previous: prologtoken
Next: query_msg

6.2.98. put

writes a character given by its ASCII value to the current output

SYNOPSIS

put(65)

SYNTAX

put(Int) (i)

ARGUMENTS

integer(Int) (i) ASCII value of character to be written.

DESCRIPTION

This is a standard prolog built-in. Put() writes the character with the ASCII value Int to the current output stream.

EXAMPLE

read(X),
( char(X), write("Character "), write(X), nl ;
  integer(X), write("Integer "),put(X), nl
).

ERRORS

No runtime errors.

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

get , write , char_int


BAP Online Manuals : Library Reference : Library by Name : put
Previous: prologtoken
Next: query_msg