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
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.
Current projects:
1) User Interface Development Kit (C++)
2) HTML SDK (C++)
3) Classes (C++)
4) INI Editor (Delphi)
Keep to one thread please.
http://www.cprogramming.com/cboard/s...threadid=18360
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
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.