Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. #ifndef LISTADUPLAMENTELIGADA_H
  2. #define LISTADUPLAMENTELIGADA_H
  3.  
  4. typedef struct no{
  5. int dado;
  6. struct no * prox, * ant;
  7. }No;
  8.  
  9. typedef struct lista{
  10. No * cabeca, *fim;
  11. int qtd;
  12. }Lista;
  13.  
  14. Lista * criar();
  15.  
  16. void inserirInicio(Lista * listaLigada, int valor);
  17.  
  18. void inserirFim(Lista * listaLigada, int valor);
  19.  
  20. void inserirIndex(Lista * listaLigada, int valor, int index);
  21.  
  22. void removerValor(Lista * listaLigada, int valor);
  23.  
  24. void removerInicio(Lista * listaLigada);
  25.  
  26. void removerFim(Lista * listaLigada);
  27.  
  28. void removerIndex(Lista * listaLigada, int index);
  29.  
  30. void imprimir(Lista * listaLigada);
  31.  
  32. void liberar(Lista * listaLigada);
  33.  
  34. int estaVazia(Lista * listaLigada);
  35.  
  36. int tamanho(Lista * listaLigada);
  37.  
  38. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement