lrd_end
Closes the LRD environment.
LRDRET lrd_end( void *mpvEndParams );The lrd_end function closes the VuGen environment and cleans up all open structures and pointers. This function is called only once in a script.
For more details refer to the Function Header File lrd.h in the include directory.
Return Values
See LRD Return Values.
Parameterization
You cannot use standard parameterization for any arguments in this function.
Example
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;
}

