FTPc_RecvFile()
Receives a file into the file system.
Files
ftp-c.h/ftp-c.c
Prototype
CPU_BOOLEAN FTPc_RecvFile (CPU_CHAR *remote_file_name, CPU_CHAR *local_file_name, NET_ERR *perr_net); |
Arguments
remote_file_name File on the remote FTP server.
local_file_name File on the local file system..
p_err_net Pointer to variable that will receive the return error code from this function.
Returned Values
DEF_OK, File successfully received;
DEF_FAIL, otherwise.
Required Configuration
None.
Notes / Warnings
None.
Example Usage
CPU_BOOLEAN result; NET_ERR err;
result = FTPc_RecvFile((CPU_CHAR *) "file_remote", (CPU_CHAR *)"\\file_local", (NET_ERR *)&err); if (result != DEF_OK) { printf("FTPc_RecvBuf() failed.\n\r"); } |