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