Function

How would I write a function that takes an array of char that holds a c string, and a char variable, and return an integer representing the number of times the value of the second parameter occurs in the C string passed in as the first parameter? I am having a hard time understanding this question, and am not sure how to put this function together?

Start with the prototype. Show what steps you know you should take, explaining each one, then note where you get stuck in a post and we can help you figure it out.
Topic archived. No new replies allowed.