BSD 4_3_Reno release
[unix-history] / usr / src / lib / libc / gen / getpass.3
CommitLineData
1c15e888 1.\" @(#)getpass.3 6.2 (Berkeley) 1/24/89
0adf1b99 2.\"
1c15e888 3.TH GETPASS 3 "January 24, 1989"
0adf1b99
KM
4.AT 3
5.SH NAME
6getpass \- 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
14reads a password from the file
15.IR /dev/tty ,
16or if that cannot be opened, from the standard input,
17after prompting with the null-terminated string
18.I prompt
19and disabling echoing.
20A pointer is returned to a null-terminated string
21of at most 8 characters.
e643a577
KF
22A calling process should zero the password as soon
23as possible to avoid leaving the cleartext password
24visible in the process' address space.
0adf1b99
KM
25.SH FILES
26/dev/tty
27.SH "SEE ALSO"
28crypt(3)
29.SH BUGS
30The return value points to static data
31whose content is overwritten by each call.