ftpappend()

The ftpappend() call appends information to a remote file.

Syntax

#include <ftpapi.h>

int ftpappend(host, userid, passwd, acct,  local,
          remote, transfertype)
char *host;
char *userid;
char *passwd;
char *acct;
char *local;
char *remote;
int transfertype;

Parameters

host

userid passwd acct local remote transfertype

Return Values

The value 0 indicates success; the value -1 indicates an error. The value of ftperrno indicates the specific error. See Return Values for a description of the return codes.

Examples

int rc;rc=ftpappend("conypc","jason","ehgr1",NULL,"abc.doc","new.doc",T_ASCII);

The local ASCII file abc.doc is appended to the file new.doc in the current working directory at the host conypc.


[Back: Return Values]
[Next: ftpcd()]