| Summary |
#include <net_config.h>
U16 tftp_fread (
FILE* file, /* Pointer to the file to read from. */
U8* buf, /* Pointer to buffer, to store the data. */
U16 len ); /* Number of bytes to read. */
|
| Example |
U16 tftp_fread (void *file, U8 *buf, U16 len) {
/* Read 'len' bytes from file to buffer 'buf'. Return number of bytes */
/* copied. The file will be closed, when the return value is < 'len' */
return (fread (buf, 1, len, file));
}
|