| Summary |
#include <net_config.h>
U16 ftp_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 ftp_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 ftp_fwrite function is in the FTP_uif.c module. The prototype is defined in net_config.h. |
| Return Value | The ftp_fwrite function returns the number of bytes written to the file. |
| See Also | ftp_fclose, ftp_fopen, ftp_fread |
| Example |
U16 ftp_fwrite (FILE *file, U8 *buf, U16 len) {
/* Write 'len' bytes from buffer 'buf' to a file. */
return (fwrite (buf, 1, len, file));
}
|