libssh2_session_last_errno(3)

libssh2_session_last_errno3

Get the most recent error number

Usage

#include <libssh2.h>
int
libssh2_session_last_errno(LIBSSH2_SESSION *session);

Overview

session - Session instance as returned by libssh2_session_init_ex(3)

Determine the most recent error condition.

Return value

Numeric error code corresponding to the the Error Code constants.

Releases

10 releases since Debian 5.0 (Lenny); the text changed 4 times.

  1. 5.0
  2. 6.0
  3. 7–8
  4. 9–12
  5. 13–Arch

From libssh2 1.11.1-7 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.