| 1 | .\" @(#)getpass.3 6.1 (Berkeley) %G% |
| 2 | .\" |
| 3 | .TH GETPASS 3 "" |
| 4 | .AT 3 |
| 5 | .SH NAME |
| 6 | getpass \- read a password |
| 7 | .SH SYNOPSIS |
| 8 | .nf |
| 9 | .B char *getpass(prompt) |
| 10 | .B char *prompt; |
| 11 | .fi |
| 12 | .SH DESCRIPTION |
| 13 | .I Getpass |
| 14 | reads a password from the file |
| 15 | .IR /dev/tty , |
| 16 | or if that cannot be opened, from the standard input, |
| 17 | after prompting with the null-terminated string |
| 18 | .I prompt |
| 19 | and disabling echoing. |
| 20 | A pointer is returned to a null-terminated string |
| 21 | of at most 8 characters. |
| 22 | .SH FILES |
| 23 | /dev/tty |
| 24 | .SH "SEE ALSO" |
| 25 | crypt(3) |
| 26 | .SH BUGS |
| 27 | The return value points to static data |
| 28 | whose content is overwritten by each call. |