install C version of _doprnt
[unix-history] / usr / src / lib / libc / gen / getpass.3
CommitLineData
b04476bf 1.\" @(#)getpass.3 6.1 (Berkeley) %G%
0adf1b99 2.\"
b04476bf 3.TH GETPASS 3 ""
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.
22.SH FILES
23/dev/tty
24.SH "SEE ALSO"
25crypt(3)
26.SH BUGS
27The return value points to static data
28whose content is overwritten by each call.