Search for links to related HTML documents
char * PtHtmlLink( PtWidget_t *widget, char *rel );
This function searches the current HTML file for the given widget, looking for a <LINK> tag whose REL attribute matches the rel argument. If the <LINK> tag is found, the function returns a pointer to a string containing the href attribute.
For example, PtHtmlLink() would return the string sample.html if called with the rel argument set to the string previous with the following link tag in the HTML file:
<link href="sample.html" rel="previous">
A pointer to the filename for the requested link, or NULL if the link couldn't be found.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |