What I want to do is very simple. I make the program ask for a password, the program compares, and if the password is valid, the program proceeds.
An example:
char pass[5];
printf("insira a senha: ");
while(pass!="asdfg") { //enquanto a senha for diferente/inválida
scanf("%s",&pass); //entrada da senha
};
When I try to run this code, the program simply does not accept the asdfg
password and still asks for the password.