The ftpmkd() call creates a new directory on a target machine.
Syntax
#include <ftpapi.h> int ftpmkd(host, userid, passwd, acct, dir) char *host; char *userid; char *passwd; char *acct; char *dir;
Parameters
host
To specify the port number (other than the well-know port) used by the FTP server, code the host name, followed by a blank, then the port number. For example, specify ftpmkd ("server1 1234",...)
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=ftpmkd("conypc","jason","ehgr1",NULL,"mydir");
The directory mydir is created on the host conypc, using the user ID jason and the password ehgr1.