Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void exibe(agenda *LISTA, char bnome[30])
- {
- system("cls");
- if(vazia(LISTA))
- {
- printf("Lista vazia\n\n");
- system("pause");
- return ;
- }
- agenda *tmp;
- agenda *tmprox;
- tmp = NULL;
- tmprox = LISTA;
- while( tmprox != NULL) {
- tmp = tmprox;
- tmprox = tmprox->prox;
- if(strcmp(bnome, tmp->nome) == 0) {
- printf("\nNome: %s\nTelefone: %s\nEmail: %s\nNascimento: %s\n", tmp->nome , tmp->telefone , tmp->email , tmp->nascimento);
- }
- }
- system("pause");
- printf("\n\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement