Didnt look it all over but i saw this
applet *temp=malloc(sizeof(applet))
Try
applet *temp=(applet*)malloc(sizeof(applet))
i might be wrong with it as i just stared at that part and nothing else


Compulsive compiler