I want to allow users to enter password using command-line interface. but I don\'t want to display this password on screen (or display \"****\").
How to do it in C?
If your system provides it, getpass is an option:
#include /* ... */ char *password = getpass("Password: ");
This will not display anything as characters are typed.