void fun (SLIST *h,int x){ SLIST *p,*q,*s; s=(SLIST*) malloc (sizeof (SLIST)); s->data=x; q=h; p=h->next; while(p!=NULL && x>p->data) { q=p; p=p->next; } s->next=p; q->next=s;}