Destroy a session.
#include <screen/screen.h>
int screen_destroy_session(screen_session_t ssn)
BlackBerry 10.3.0
The session to be destroyed. The session must have been created with screen_create_session_type().
Function Type: Flushing Execution
This function destroys a session given a screen_session_t instance. You must destroy each screen_session_t after it is no longer needed.
0 if the session was destroyed, or -1 if an error occurred (errno is set).