ftpdir()

The ftpdir() call gets a directory in wide format from a host.

Syntax

#include <ftpapi.h>

int ftpdir(host, userid, passwd, acct, local, pattern,)
char *host;
char *userid;
char *passwd;
char *acct;
char *local;
char *pattern;

Parameters

host

userid passwd acct local pattern

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=ftpdir("conypc","jason","ehgr1",NULL,"conypc.dir","*.c");

ftpdir() gets a directory of *.c files in wide format, and stores the directory in a local file, conypc.dir.


[Back: ftpdelete()]
[Next: ftpget()]