Array of pointers (chars)
Hello, I need to make a function that will receive an array of pointers of chars and an char. The function will check how many times the char appears in the array, example:
Code:
char *msg[] = {
"String one",
"String two",
"String three",
"String four",
};
Now I pass to the function the array and the char 'e' the function will return me 3.
Now the question, after that I pass the function, what should I do? I need to check char by char? hmm, I don't need that you make me the whole program, I just need to understand, thanks :)