HTML_NODE_FREE(3)

NAME
html_node_free - free a HTML node and its children

SYNOPSIS

#include <slweb/html.h>

void html_node_free(struct html_node *n);

DESCRIPTION
The html_node_free(3) function frees the memory space pointed to by n, which must have been returned by a previous call to html_node_alloc(3). Children nodes are freed recursively.

RETURN VALUE
The html_node_free() function returns no value.

ERRORS
No errors are defined.

NOTES
Since html_node_free(3) frees nodes recursively, library users must not attempt to call html_node_free(3) for a child node.

SEE ALSO
html_node_alloc(3), slweb_html(7).

COPYRIGHT
Copyright (C) 2023 Xavier Del Campo Romero.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.