I’m making a mini system for personal educational purposes, but I’m not having success in this part.
After executing a printf()
, the program simply returns:
Process returned -1073741819 (0xC0000005)
const char* nomePastaContas = "contas";
char *ibanPessoal;
char *passwordPessoal;
void loginMenu(){
system("cls");
printf("\n\n IBAN: ");
scanf("%s", &ibanPessoal);
printf("\n\n Password: ");
scanf("%s", &passwordPessoal);
printf("Debug");
verificarConta(ibanPessoal, passwordPessoal);
}
void verificarConta(char* iban, char* pswd){
// Verificar o Login OU criar conta.
printf("Debug 2");
char* pastaDoUsuario = "nil";
printf("Debug 3");
printf("\n\n IBAN %s\n PASSWORD: %s", iban, pswd); // the program stops here... All debugs are fine, but debug4 isnt showing.
printf("Debug 4");
printf("\n\n%s", pastaDoUsuario);
sprintf(pastaDoUsuario, "contas/%s", iban);
printf("\n\n Pasta de Usuario: %s", pastaDoUsuario);
if(_access(pastaDoUsuario, 0) == 0){
printf("Usuario encontrado");
}
else{
printf("Usuario nao encontrado.");
}
Sleep(100000);
}
Objective: Continue the program after the printf()
that does not work.
You need to sign in to view this answers
Leave feedback about this