Why this code isn\'t working. Just trying to check if the user input is the same as a password
char *pass; printf(\"Write the password: \"); scanf(\"%s\", p
pass is an unitialized pointer, and you attempt to write into it. You have to allocate enough memory to hold a string. For example, char pass[SIZE] will work better.
pass
char pass[SIZE]