libssh2_sftp_last_error.3 (749B)
1.TH libssh2_sftp_last_error 3 "1 Jun 2007" "libssh2 0.15" "libssh2" 2.SH NAME 3libssh2_sftp_last_error - return the last SFTP-specific error code 4.SH SYNOPSIS 5.nf 6#include <libssh2.h> 7#include <libssh2_sftp.h> 8 9unsigned long 10libssh2_sftp_last_error(LIBSSH2_SFTP *sftp); 11.fi 12.SH DESCRIPTION 13\fIsftp\fP - SFTP instance as returned by 14.BR libssh2_sftp_init(3) 15 16Returns the last error code produced by the SFTP layer. Note that this only 17returns a sensible error code if libssh2 returned LIBSSH2_ERROR_SFTP_PROTOCOL 18in a previous call. Using \fBlibssh2_sftp_last_error(3)\fP without a 19preceding SFTP protocol error, it will return an unspecified value. 20.SH RETURN VALUE 21Current error code state of the SFTP instance. 22.SH SEE ALSO 23.BR libssh2_sftp_init(3)