char

BAP Online Manuals : Library Reference : Library by Name : char
Previous: cd
Next: char_int

6.2.16. char

tests whether the type of the argument is char

SYNOPSIS

char(Term)

SYNTAX

 char(Term) (i)

ARGUMENTS

char(Term) (i) Term to be tested.

DESCRIPTION

This is a standard prolog built-in. Char() succeeds if its argument is unbound or currently bound to a character.

EXAMPLE

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

ERRORS

No runtime errors.

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

atom , integer , string


BAP Online Manuals : Library Reference : Library by Name : char
Previous: cd
Next: char_int