Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CoD aux = (CoD)malloc(sizeof(Cod));
- if(lista==NULL)
- {
- lista = (CoD)malloc(sizeof(Cod));
- lista->cond=p;
- for(i=0;i<10;i++)
- {
- if(i<2){lista->condicao[i]=c[i];}
- lista->hipo[i]=h[i];
- }
- lista->prox=NULL;
- free(aux);
- }
- else
- {
- aux->cond=p;
- for(i=0;i<7;i++)
- {
- if(i<3){aux->condicao[i]=c[i];}
- aux->hipo[i]=h[i];
- }
- aux->prox=lista;
- lista=aux;
- }
- return lista;
- }
Add Comment
Please, Sign In to add comment