1GETPASS(3)                 Library Functions Manual                 GETPASS(3)
2
3
4

NAME

6       getpass - read a password
7

SYNOPSIS

9       char *getpass(prompt)
10       char *prompt;
11

DESCRIPTION

13       Getpass  reads  a password from the file /dev/tty, or if that cannot be
14       opened, from the standard input, after prompting with  the  null-termiā€
15       nated  string prompt and disabling echoing.  A pointer is returned to a
16       null-terminated string of at most 8 characters.
17

FILES

19       /dev/tty
20

SEE ALSO

22       crypt(3)
23

BUGS

25       The return value points to static data whose content is overwritten  by
26       each call.
27
28
29
307th Edition                      May 15, 1985                       GETPASS(3)
Impressum