Converting Prolog terms into C

The following functions convert Prolog terms to C. If a Prolog term does not have the expected type, then the global C variable exception is set. A C program that uses these functions must check whether exception is set, in order to determine whether data have correctly been converted. The converted data are only correct when exception is NULL.

Neng-Fa Zhou 2013-01-25