sftp_seek method

int sftp_seek(
  1. sftp_file file,
  2. int new_offset
)

@brief Seek to a specific location in a file.

@param file Open sftp file handle to seek in.

@param new_offset Offset in bytes to seek.

@return 0 on success, < 0 on error.

Implementation

int sftp_seek(
  sftp_file file,
  int new_offset,
) {
  return _sftp_seek(
    file,
    new_offset,
  );
}