The ftpremsize() call returns the size of a file on the remote server.
Syntax
#include <ftpapi.h>
int ftpget(host, userid, passwd, acct, local, remote,
mode, transfertype)
char *host;
char *userid;
char *passwd;
char *acct;
char *local;
char *remote;
char *mode;
int transfertype;
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 ftpget ("server1 1234",...)
Return Values
Value greater than zero indicates success which is the size of the remote file, the value -1 indicates error.