#include <net_config.h>
void *ftpc_fopen (
U8* mode); /* Pointer to mode of operation. */
Description
The ftpc_fopen function opens a local file for reading or
writing. The argument mode defines the type of access
permitted for the file. It can have one of the following values:
Mode
Description
"rb"
Opens the file for reading. If the file does not
exist, fopen fails.
"wb"
Opens an empty file for writing. If the file
already exists, its contents are cleared.
The ftpc_fopen function is in the FTPC_uif.c module. The
prototype is defined in net_config.h.
Note
This is an interface function of FTP Client.
Return Value
The ftpc_fopen function returns a pointer to the opened
file. The function returns NULL if it cannot open the file.
#define LOCAL_FILE "Test.bin"
void *ftpc_fopen (U8 *mode) {
/* Open local file for reading or writing. If the return value is NULL, */
/* processing of FTP Client commands PUT, APPEND or GET is cancelled. */
return (fopen (LOCAL_FILE, (char *)mode));
}
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.