ftpdelete()

The ftpdelete() call deletes files on a remote host.

Syntax

#include <ftpapi.h>

int ftpdelete(host, userid, passwd, acct, name)
char *host;
char *userid;
char *passwd;
char *acct;
char *name;

Parameters

host

userid passwd acct name

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=ftpdelete("conypc","jason","ehgr1",NULL,"abc.1");

The file abc.1 is deleted on the host conypc using the user ID jason and the password ehgr1.


[Back: ftpcd()]
[Next: ftpdir()]