Advertisement
Guest User

Untitled

a guest
Nov 13th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. void exibe(agenda *LISTA, char bnome[30])
  2. {
  3. system("cls");
  4. if(vazia(LISTA))
  5. {
  6. printf("Lista vazia\n\n");
  7. system("pause");
  8. return ;
  9. }
  10. agenda *tmp;
  11. agenda *tmprox;
  12. tmp = NULL;
  13. tmprox = LISTA;
  14. while( tmprox != NULL) {
  15. tmp = tmprox;
  16. tmprox = tmprox->prox;
  17. if(strcmp(bnome, tmp->nome) == 0) {
  18. printf("\nNome: %s\nTelefone: %s\nEmail: %s\nNascimento: %s\n", tmp->nome , tmp->telefone , tmp->email , tmp->nascimento);
  19. }
  20. }
  21. system("pause");
  22. printf("\n\n");
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement