| Summary |
#include <net_config.h>
BOOL http_fgets (
FILE* file, /* Pointer to the file to read from. */
U8* buf, /* Pointer to buffer, to store the read data. */
U16 size ); /* Maximum length of the string to read. */
|
| Example |
BOOL http_fgets (void *f, U8 *buf, U16 size) {
/* Read a string from file to buffer 'buf'. The file will be closed, */
/* when this function returns __FALSE. */
if (fgets ((char *)buf, size, f) == NULL) {
return (__FALSE);
}
return (__TRUE);
}
|