Perhaps you could display the chars enetred with '*' as an improvement to your code.
int main(int argc, char *argv)
int i, z, q;
int ctr = 0;
char password = "Password";
printf("To get into the program, you must enter the correct password.\n");
printf("Type in your password(upper and lower case matter).\n");
/* fgets(entry, sizeof entry, stdin);
perhaps you might need this as well if you use fgets
p = strchr(entry,'\n');
P = '\0';
i = strlen(password);
printf(" %d\n", i);
for(z=0; z <= i; z++)
if(password[ctr] == entry[ctr])
if(q == i)
printf("You are in\n");
/* use getchar(): */
/* my output
To get into the program, you must enter the correct password.
Type in your password(upper and lower case matter).
Press any key to continue . . .