Recursively searches through a tree structure to find a node with a specific name. The search is performed depth-first and returns the first matching node found.
find_node_by_name(node, target_name)Node object if found, NULL otherwise
Node object representing the current position in the tree. Should have:
name: Character string identifier
children: List of child nodes
Character string specifying the name to search for
The function handles NULL inputs safely and performs a recursive depth-first search through the tree structure. It checks node names and recursively searches through child nodes.