1libssh2_session_last_error(3)   libssh2 manual   libssh2_session_last_error(3)
2
3
4

NAME

6       libssh2_session_last_error - get the most recent error
7

SYNOPSIS

9       #include <libssh2.h>
10
11       int libssh2_session_last_error(LIBSSH2_SESSION *session, char **errmsg,
12       int *errmsg_len, int want_buf);
13
14

DESCRIPTION

16       session - Session instance as returned by libssh2_session_init(3)
17
18       errmsg - If not NULL, is populated by reference with the human readable
19       form of the most recent error message.
20
21       errmsg_len  - If not NULL, is populated by reference with the length of
22       errmsg. (The string is NUL-terminated, so the length is only useful  as
23       an optimization, to avoid calling strlen.)
24
25       want_buf - If set to a non-zero value, "ownership" of the errmsg buffer
26       will be given to the calling scope. If  necessary,  the  errmsg  buffer
27       will be duplicated.
28
29       Determine the most recent error condition and its cause.
30
31

RETURN VALUE

33       Numeric error code corresponding to the the Error Code constants.
34
35

SEE ALSO

37       libssh2_session_last_errno(3)
38
39
40
41libssh2 0.15                      1 Jun 2007     libssh2_session_last_error(3)
Impressum