[Function not working]

Can somebody please help me? Why is this recursive fuction only working on one of the nodes? It should return a node of a binary tree, and it does, but only one side (either left node or right node). Here is the function:

I know because it only shows the results on either the right child or the left, depending on the order of the recursive calls. If I change the data inserted in the "name" parameter it tells me segmentation fault.

Originally Posted by admiraln

How do you know that I searches one side only?

Create a running piece of code with simple sample data and show us the results that show the behavior you describe.