GETPASS(3C) DOMAIN/IX Reference Manual (SYS5) GETPASS(3C)
NAME
getpass - read a password
USAGE
char *getpass (prompt)
char *prompt;
DESCRIPTION
Getpass reads up to a newline or EOF from the file /dev/tty,
after prompting on the standard error output with the null-
terminated string prompt and disabling echoing. Getpass
returns a pointer to a null-terminated string of up to 8
characters. If /dev/tty cannot be opened, the call returns
a NULL pointer. An interrupt will terminate input and send
an interrupt signal to the calling program before returning.
NOTES
This routine uses <stdio.h>, which causes it to increase the
size of programs that don't otherwise use standard I/O more
than you might expect.
The return value points to static data whose content is
overwritten by each call.
Printed 5/10/85 GETPASS-1