#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));
}
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.