Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C by Vogelino ( 15 years ago )
while((ptr == NULL) || (ptr->Cont == Content) )
{
if(ptr->Cont < Content)
{
fptr = ptr;
ptr = ptr->RPtr;
}
else if(ptr->Cont > Content)
{
fptr = ptr;
ptr = ptr->LPtr;
}
}
ptr = (struct tBTNode*)malloc (sizeof (struct tBTNode));
ptr->Cont = Content;
ptr->LPtr = NULL;
ptr->RPtr = NULL;
*RootPtr = ptr;
if(fptr->Cont > Content)
{
fptr->LPtr = ptr;
}
else if (fptr->Cont < Content)
{
fptr->RPtr = ptr;
}
Revise this Paste
Parent: 41446
Children: 41459