C Strings

I need help creating 3 functions. In the program the user enters a password but it must meet specific details. When I try these methods they fail how can I edit them to work. Should I use a different C String function?