Line | |
---|
1 | .\" @(#)getpass.3 6.1 (Berkeley) 5/15/85
|
---|
2 | .\"
|
---|
3 | .TH GETPASS 3 "May 15, 1985"
|
---|
4 | .AT 3
|
---|
5 | .SH NAME
|
---|
6 | getpass \- read a password
|
---|
7 | .SH SYNOPSIS
|
---|
8 | .nf
|
---|
9 | .ft B
|
---|
10 | #include <minix/minlib.h>
|
---|
11 |
|
---|
12 | char *getpass(const char *\fIprompt\fP)
|
---|
13 | .fi
|
---|
14 | .SH DESCRIPTION
|
---|
15 | .B Getpass
|
---|
16 | reads a password from the file
|
---|
17 | .BR /dev/tty ,
|
---|
18 | or if that cannot be opened, from the standard input,
|
---|
19 | after prompting with the null-terminated string
|
---|
20 | .I prompt
|
---|
21 | and disabling echoing.
|
---|
22 | A pointer is returned to a null-terminated string
|
---|
23 | of at most 32 characters, excluding the null.
|
---|
24 | .SH "SEE ALSO"
|
---|
25 | .BR crypt (3).
|
---|
26 | .SH BUGS
|
---|
27 | The return value points to static data
|
---|
28 | whose content is overwritten by each call.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.