CJCoding With Joseph
15free / daySign inCreate account

Carleton University - SYSC 2006

find_node()

Assignment 2 - Spring 2025

The goal of find_node() is to search through the linked list of nodes and return a pointer to the node with a given name. For example, if your list looks like:

nodeA → nodeB → nodeC → NULL

and you call find_node(node_list, "nodeB"), it will return a pointer to the nodeB structure.
If the name is not found, it returns NULL.

This is a helper function used in many places (e.g., get_link_info(), get_route_info(), etc.).

Members only

Keep reading this lesson

You've reached the end of the free preview. Unlock the rest of this lesson plus 25 more lessons in Carleton University - SYSC 2006.

  • Unlimited coding questions
  • Unlimited access to all classroom material
  • Weekly live call for questions and guidance
  • 3,000 AI tutor tokens / month
  • Personal SQL database (3 MB)
  • Progress tracking

Cancel any time.