#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.
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.