C code to hide input password

C program to hide input password with *
In this code Password accepts all character except ‘\n’ .

password