How can I type like password when I input data ?

Hello, I want to hide characters when I input data from keyboard like that
printf ("Enter your password:");
If I type "mypassword", in my console terminal will be shown ****... but not characters.
If I hit the BackSpace key, string ******** will in one shorter
How can I do? Help me, pls!
Topic archived. No new replies allowed.