FtpPut(3)

FtpPut3

Send a file to the remote system.

Usage

#include <ftplib.h>

int FtpPut(const char *input, const char *path,

char mode, netbuf *nControl);

Parameters

input

Specifies the name of a local file to be transfered to the server.

path

Specifies the name to be given to the file on the remote system.

mode

Specifies the transfer mode as FTPLIB_ASCII or FTPLIB_IMAGE.

nControl

A handle returned by FtpConnect().

Overview

FtpPut() transfers a local file to the remote system.

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.