How do I fix this search method?

the search function wants a string, but you’re giving it an integer,
perhps change the input dialogue like this:

printf("Enter the client ID to search for: ");
{
    char mybuffer[100];
    scanf("%99s", mybuffer);
    foundAt = searchClient(mybuffer, pcli, clCount);
}

Leave a Comment