Within a function A, I have a printf that asks for a login and another one that asks for a password.
When I call that function from the main function, it works... it waits for me to insert the first and then the second.
The problem occurs when I call the function A from another function B, it goes directly to the second printf without letting me to insert the first one.
Here is part of the code:
Any ideas?Code:printf("Login:\n"); fgets(login,sizeof(login),stdin); printf("Password:\n"); fgets(password,sizeof(password), stdin);
Thanks in advance.