i have an "add function" that adds names alphabetically to a sorted linked list.
the list is already made in this format :
Dani Web
Mark Markos
Michael David
Zebra Zebra
.
.
etc
if i add a node : adam ( it goes to the end of the list instead of getting attached to the head )
if i add node: Adam ( it gets attached to the head fine )
so as long as I am adding according to this format Xxx it works . if i add xxx it doesn't work .
p.s : i use strcmp to find the specific location for the node .
anyway to make the liked list take the name whether it starts with capital or lower letter and put it in the right place?