#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. */
Description
The http_fgets reads up-to size bytes from the file
identified by the file stream pointer in the function
argument. The argument buf is a pointer to the buffer where
the function stores the read data.
The http_fgets function is in the HTTP_uif.c module. The
prototype is defined in net_config.h.
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);
}
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.