Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef struct lligada {
- int value;
- struct lligada *next;
- } *LInt;
- void splitQS (LInt l, int x, LInt *mx, LInt *Mx){
- LInt *aux1,*aux2;
- aux1=mx;
- aux2=Mx;
- while(l){
- if(x<l->value){
- (*aux1)=(LInt)malloc(sizeof(struct lligada));
- (*aux1)->value=l->value;
- aux1=&((*aux1)->next);
- }
- if(x>=l->valor){
- (*aux2)=(LInt)malloc(sizeof(struct lligada));
- (*aux2)->value=l->value;
- aux2=&((*aux2)->next);
- }
- l=l->next;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement