HTML_NODE_ADD_SIBLING(3)

NAME
html_node_add_sibling - add sibling to a HTML node

SYNOPSIS

#include <slweb/html.h>

void html_node_add_sibling(struct html_node *n, struct html_node *sibling);

DESCRIPTION
The html_node_add_sibling(3) function adds a sibling node, pointed to by sibling, to a struct html_node object, previously allocated by a call to html_node_alloc(3) or html_node_add_child(3), and pointed to by n.

RETURN VALUE
The html_node_add_sibling(3) function always succeeds.

ERRORS
No errors are defined.

NOTES
This function is mostly meant for internal use. Library users should only need html_node_add_child(3) to create tree structures. Nonetheless, html_node_add_sibling(3) was still made public so as to cover possibly less common use cases.

SEE ALSO
html_node_alloc(3), html_node_add_child(3), slweb_http(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.