well i think i figured it out...
the while loop is returning zero and not looping. thats why if i deleted the second it would find it and then pop out of the loop. if i got rid of return zero:Code:
while(crnt->next != NULL && strcmp(license, crnt->next->license)!=0)
{
crnt = crnt->next;
return 0;
}
it continues in the loop until it finds the value im looking for, then pops out and continues. it deletes the one i want. if it reaches the end, it returns zero. :-) am i right? im pretty sure its doing it right lolCode:
while(crnt->next != NULL && strcmp(crnt->next->license, license)!=0)
{
crnt = crnt->next;
}
if(crnt->next==NULL)
{
return 0;
}
