tests whether the type of the argument is char
char(Term)
char(Term) (i)
char(Term) (i) Term to be tested.
This is a standard prolog built-in. Char() succeeds if its argument is unbound or currently bound to a character.
read(X), ( char(X), write("Character"),nl ; integer(X), write("Integer"),nl ).
No runtime errors.
prolog-process, client-server, object