Example: lrd_end

In the following example, lrd_end is executed in the vuser_end section, after all the data is retrieved.

int vuser_end()
{
 /* Cleanup the environment. */
	lrd_close_all_cursors(Con1);
	lrd_commit( 0,Con1, 0 );
	lrd_close_connection(Con1, 0, 0);
	lrd_end(0);
	return VUSER_OK;
}