Index: sftp.c
===================================================================
RCS file: /cvsroot/libssh2/libssh2/src/sftp.c,v
retrieving revision 1.55
diff -u -r1.55 sftp.c
--- sftp.c	29 Sep 2008 14:11:30 -0000	1.55
+++ sftp.c	29 Nov 2008 12:31:45 -0000
@@ -1550,6 +1550,17 @@
 
 /* }}} */
 
+/* {{{ libssh2_sftp_tell2
+ * Return the current read/write pointer's offset
+ */
+LIBSSH2_API libssh2_uint64_t
+libssh2_sftp_tell2(LIBSSH2_SFTP_HANDLE * handle)
+{
+    return handle->u.file.offset;
+}
+
+/* }}} */
+
 
 /* {{{ libssh2_sftp_close_handle
  * Close a file or directory handle

