Can anyone give me some code for Unregistering a element from the linked list given JustSid.
This was what I had done for my linked list.Now I am following what JustSid code does

int UnregisterApplet(Applet * applet)
{
if(!applet) { return error("RegisterApplet:Invalid Applet"); }
AppletList * Temp = Applets;
while(1)
{
if(!Temp->next)
{
return error("UnregisterApplet:Could not find the spcified Applet");
break;
}
if(Temp->applet == applet)
{
AppletList * Temp2 = Temp->previous;
Temp2->next = Temp->next;
Temp2 = Temp->next;
Temp2->previous = Temp->previous;
return 0;
}
else
{
Temp = Temp->next;
}
}
}
Thanks