screen_destroy_session()

Destroy a session

Synopsis:

#include <screen/screen.h>
int screen_destroy_session(screen_session_t ssn)

Arguments:

ssn
The session to be destroyed. The session must have been created with screen_create_session_type().

Library:

libscreen

Description:

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.

Returns:

0 if successful, or -1 if an error occurred (errno is set; refer to errno.h for more details).