#1. Use the strlen() function in string.h to check lengths of strings for comparisons.
#2. Use the isupper() and islower() in ctype.h (or cctype for ANSI) to find if characters are uppercase or lower case.
#3. Use the isdigit() in ctype.h (or cctype for ANSI) to find if a character is a digit.
You will have to parse the password string character by character like this:
Code:
while( *string != '\0')
{
if( isupper(*string) )
// Do whatever
if( isdigit(*string) )
// Do whatever
string++ // Point to next character
}
Good luck...