Hi,
ON WINDOWS IT WORKS FINE.
I would like to know how can I write a program in 'C' so that when the user types in the password, the characters are not displayed on the screen.
I WANT TO DO THIS ON UNIX
Ta,
Moepi
Printable View
Hi,
ON WINDOWS IT WORKS FINE.
I would like to know how can I write a program in 'C' so that when the user types in the password, the characters are not displayed on the screen.
I WANT TO DO THIS ON UNIX
Ta,
Moepi
You just have to find a function in UNIX that is equal to the getch function. Check man pages or check it on the google.
:cool:
Keep to one thread please.
http://www.cprogramming.com/cboard/s...threadid=18360
in the <unistd.h> header a function called, getpass(char* prompt), are others such as crypt(); check the man pages for unistd.h, ncurses, or the man page for the functions mentioned.