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