#include <net_config.h>
void* tftpc_fopen (
U8* fname, /* Pointer to name of file to open. */
U8* mode ); /* Pointer to mode of operation. */
Description
The tftpc_fopen function opens a local 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 tftpc_fopen function is in the TFTPC_uif.c module. The
prototype is defined in net_config.h.
note
This is an interface function of TFTP Client.
Return Value
The tftpc_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.