I have this record:
typedef struct{
char nome[200], telefone[200], email[200];
} Agenda;
Agenda contato;
Agenda vetor[300];
And I want to print only those records that have data:
int lista_contatos(void){
printf("========== Contatos ==========\n");
for(i=0;i<300;i++){
if(vetor[i].nome == NULL){
printf("Contatos Listados.");
main();
}else{
printf(sizeof(vetor[i].nome));
printf("Nome: %s \n",vetor[i].nome);
printf("Telefone: %s \n",vetor[i].telefone);
printf("Email: %s \n",vetor[i].email);
printf("________________________\n");
}
}
}