#include <net_config.h>
U16 ftpc_fwrite (
FILE* file, /* Pointer to the file to write to. */
U8* buf, /* Pointer to the buffer containing the data. */
U16 len ); /* Number of bytes to write. */
Description
The ftpc_fwrite function writes a block of data to the file
identified by the file stream pointer. The argument buf
points to the buffer containing the data that is to be written to the
file. The argument len specifies the number of bytes to write
to the file.
The ftpc_fwrite function is in the FTPC_uif.c module. The
prototype is defined in net_config.h.
Note
The ftpc_fwrite function must write len bytes.
The FTP Client stops writing, aborts data transfer and closes the
FTP session, if the return value is less than len bytes
This is an interface function of FTP Client.
Return Value
The ftpc_fwrite function returns the number of bytes
written to the file.
U16 ftpc_fwrite (void *file, U8 *buf, U16 len) {
/* Write 'len' bytes from buffer 'buf' to a file. Data transfer will be */
/* aborted, if the return value is not equal 'len'. */
return (fwrite (buf, 1, len, 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.