Finding a Node by Name


Because list nodes can have names, you can search for a node with a particular name with the FindNamedNode() function:

Node *FindNamedNode( const List *l, const char *name )
The l argument is a pointer to the list to search; the name argument is the name of the node for which to search. The function returns a pointer to the Node structure or NULL if the named node is not found. The search is not case-sensitive; that is, the kernel does not distinguish uppercase and lowercase letters in the node names.