ELinks 0.16.1.1
parse-meta-refresh.h File Reference
This graph shows which files directly or indirectly include this file:

Functions

int html_parse_meta_refresh (const char *content, unsigned long *delay, char **url)
 Parses a <meta http-equiv="refresh" content="..."> element.

Function Documentation

◆ html_parse_meta_refresh()

int html_parse_meta_refresh ( const char * content,
unsigned long * delay,
char ** url )

Parses a <meta http-equiv="refresh" content="..."> element.

Parameters
[in]contentThe value of the content attribute, with entities already expanded.
[out]delayHow many seconds to wait before refreshing.
[out]urlThe URI to load when refreshing, or NULL to reload the same document. The caller must free the string with mem_free() unless it's NULL.
Returns
0 if successful, or negative on error. On error, *url is NULL.