- idx is reference to what we are looking for in the linked list
- found returns true if second argument matches the first, else false. (i dont need to write the code for this, just need to call it to compare a value in a node)
- returns address of the node or NULL if not if not
- if what we are searching for is found, list is manipulated in a certain way (which I know how to do...).
I just dont get this requirement...if anyone can provide some direction on what I actually have to do, it would be very much appreciated.
Walk each element in the linked list in order, beginning at head. For each element you traverse, call found()
to compare that element to the one passed into the function. If they are equal, return the address of the
node of the element you just compared. If not, continue on to the next node. If you hit the end of the list
and still haven't found the item, then return NULL.