I want to ask the user to input another name, if the name is already in the array list. How do I do that?
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define MAX_SIZE 12
#define MAX_LENGTH 25
char waitList[MAX_SIZE][MAX_LENGTH];
char numberInParty[MAX_SIZE];
int count = 0;
void insertList() {
char name[MAX_LENGTH];
int number, i;
printf("Name? ");
scanf("%s", name);
printf("Number of people in party? ");
scanf("%d", &number);
strcpy(waitList[count], name);
numberInParty[count] = number;
printf("Inserted\n\n");
count++;