Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tlista *Insere(Tlista *L, int info) {
- Tlista *Aux, *temp;
- Aux = (Tlista*) malloc(sizeof (Tlista));
- Aux->info = info;
- Aux->prox = NULL;
- if (L == NULL)
- L = Aux;
- else {
- temp = L;
- while (temp->prox != NULL){
- temp = temp->prox;
- }
- temp->prox = Aux;
- }
- return L;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement