FtpGet(3)

FtpGet3

Retreive a file from the remote system.

Usage

#include <ftplib.h>

int FtpGet(const char *output, const char *path,

char mode, netbuf *nControl);

Parameters

output

Name of a local file to receive the contents of the remote file.

path

Name of remote file to be retrieved.

mode

Specifies the transfer mode as FTPLIB_ASCII or FTPLIB_IMAGE.

nControl

A handle returned by FtpConnect().

Overview

FtpGet() copies the contents of a remote file to a local file.

Return value

Returns 1 if successful or 0 on error.

Releases

Unchanged in 10 releases since Debian 2.0 (Hamm).

  1. 2.0–8

From ftplib-dev 3.1-1-9 in Debian 8 (Jessie). Parsed by carta from the page's man source.