get input whithout inputs echoing in screen

I want to write a functionz(work on command line mode) which require user input password , but I do not want the passwd echo in screen , then I should not use scanf() . Which function should I use ?
Thank you for helping me

getpass() is one option. But it's rather limited. Other than that you will need to use the termio or termios stuff. See this post for an example of using them.