int QP_ipc_close()

The QP_ipc_close() routine closes a query that was opened by QP_ipc_prepare() but did not have all of its answers retrieved by calls to QP_ipc_next(). (When QP_ipc_next() returns a -1, indicating no more answers, the query is automatically closed, and a subsequent call to QP_ipc_close() is an error.) QP_ipc_close() returns 0 if it has closed the query successfully, and -1 if there is an error.