next up previous contents index
Next: Registering Foreign Predicates Up: The Foreign Include File Previous: Environment Control from Foreign   Contents   Index

Querying Prolog

C_typePL_queryint Obtain status information on the Prolog system. The actual argument type depends on the information required. int describes what information is wanted. The options are given in query.


Table: PL_query options
PL_QUERY_ARGC Return an integer holding the number of arguments given to Prolog from Unix.
PL_QUERY_ARGV Return a char ** holding the argument vector given to Prolog from Unix.
PL_QUERY_SYMBOLFILE Return a char * holding the current symbol file of the running process.
PL_MAX_INTEGER Return a long, representing the maximal integer value represented by a Prolog integer.
PL_MIN_INTEGER Return a long, representing the minimal integer value.
PL_QUERY_VERSION Return a long, representing the version as $10,000 \times M + 100 \times m + p$, where $M$ is the major, $m$ the minor version number and $p$ the patch-level. For example, 20717 means 2.7.17.



next up previous contents index
Next: Registering Foreign Predicates Up: The Foreign Include File Previous: Environment Control from Foreign   Contents   Index
Dr. Richard Botting 2001-12-12