#include <net_config.h>
void *ftp_fopen (
U8* fname, /* Pointer to name of file to open. */
U8* mode); /* Pointer to mode of operation. */
Description
The ftp_fopen function opens a file for reading or writing.
The argument fname specifies the name of the file to open. The
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 does
not exist. If the file already exists, its contents are
cleared.
The ftp_fopen function is in the FTP_uif.c module. The
prototype is defined in net_config.h.
Return Value
The ftp_fopen function returns a pointer to the opened
file. The function returns NULL if it cannot open the file.
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.