Availability:C-language interface function
bool PL_get_char_ex(term_t
t, int *p, int eof)Get a character code from t, where t is either an
integer or an atom with length one. If eof is TRUE
and t is -1, p is filled with -1. Raises an
appropriate error if the conversion is not possible.