Assignment and a small discussion
Assignment
Write a function to take a string of no more than 50 characters and a character and returns the count of a letter the user inputs. If the letter is not found, the function returns -1. Use the function in main to get two inputs from the user, a sentence and a character, then show the count of that character.
Discussion
For this discussion write a unique code snippet that demonstrates the use of one of the string functions of string.h that were covered in the slides. Make sure to add a comment to explain.