If your system provides it, getpass is an option:
#include <unistd.h>
/* ... */
char *password = getpass("Password: ");
This will not display anything as characters are typed.
More Related Contents:
- C Password Log giving me errors
- Why my Program isnt working after providing input?
- Disadvantages of scanf
- How to avoid pressing Enter with getchar() for reading a single character only?
- C non-blocking keyboard input
- What is EOF in the C programming language?
- Check if input is integer type in C
- strcmp on a line read with fgets
- Reading string from input with space character? [duplicate]
- While (( c = getc(file)) != EOF) loop won’t stop executing
- read comma-separated input with `scanf()`
- Input in C. Scanf before gets. Problem
- Getting a password in C without using getpass (3)?
- Problems with character input using scanf()
- How to use redirection in C for file input
- How can I scan strings with spaces in them using scanf()? [duplicate]
- C getopt multiple value
- Trouble reading a line using fscanf()
- strstr not functioning
- Wrong format specifiers in scanf (or) printf
- whitespace in the format string (scanf)
- Why doesn’t pressing enter return ‘\n’ to getch()?
- How to provide user name and password when connecting to a network share
- What is short-circuit evaluation in C?
- typedef pointer const weirdness
- Using memset for integer array in C
- How to append strings using sprintf?
- How do I free memory in C?
- lvalue required as increment operand
- Parse CSV file in C [closed]