char
BAP Online Manuals : Library
Reference : Library by Name
: char
Previous: cd
Next: char_int
BAP Online Manuals : Library Reference : Library by Name : char
Previous: cd
Next: char_int
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
BAP Online Manuals : Library Reference : Library by Name : char
Previous: cd
Next: char_int