QP_cut_query()

Synopsis

     #include <quintus/quintus.h>
     
     int QP_cut_query(qid)
     QP_qid qid;
     

Equivalent to just calling ! in Prolog.

Description

The computation is rendered determinate, but as it is not failed over the Prolog heap is not popped. Thus when terminating a query using QP_cut_query() more space may be retained, but so is the last solution.

Return Values


QP_SUCCESS

QP_ERROR
either something is wrong with the QP_qid or Prolog has not been initialized

See Also

QP_query(), QP_close_query(), QP_next_solution(), QP_open_query(), QP_pred(), QP_predicate() fli-ffp