So, im trying to delete all entries of the linked list in my phonebook lab, and it's reading an error that I don't know how to fix. The error is reading "incompatible types when assigning to type char[50] from type 'int.'
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
typedef struct phonebook{
char first_name[70];
char last_name[50];
char phone_num[50];
}entry; //TypeDef to modify structure name
void addFriend(entry *, int *); //function prototype to add a friend
void dltFriend(entry *, int *, int);
void showBook(entry *, int *);
void alphaList(entry*, int*);
void findNum(entry*, int*);
void randSelect(entry*, int*);
void dltAll(entry*,int*);
void dltAll(entry*phonebook, int*count){
int i;
for(i=0; i< *count; i++)
{
do{
phonebook[i].first_name = '\0';
phonebook[i].last_name = '\0';
phonebook[i].phone_num = '\0';
break;
}
while (i <= *count);
}
printf("\nAll contacts deleted\n");
system("pause");
}