Example: lrd_close_context

In the following example, lrd_close_context closes the open context structure, Ctx1.

lrd_close_cursor(&Csr1, Con1, 0);

/* Close all connections even whose results are pending */
lrd_close_context(&Ctx1, LRD_CLOSE_CONTEXT_CTLIB_OPT_FRC, 0);
lrd_close_connection(&Con1, "", 0);