Main index | Section 3 | 日本語 | Deutsch | Options |
#include <pwd.h>
#include <unistd.h>
The password may be up to _PASSWORD_LEN (currently 128) characters in length. Any additional characters and the terminating newline character are discarded.
The getpass() function turns off character echoing while reading the password.
/dev/tty | |
The calling process should zero the password as soon as possible to avoid leaving the cleartext password visible in the process's address space.
Upon receipt of a SIGTSTP, the input buffer will be flushed, so any partially typed password must be retyped when the process continues.
GETPASS (3) | June 4, 1993 |
Main index | Section 3 | 日本語 | Deutsch | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | Unix is a junk OS designed by a committee of PhDs. | ” |
— Dave Cutler |