GETPASS(3C) SysV GETPASS(3C)
NAME
getpass - read a password
SYNOPSIS
char *getpass (prompt)
char *prompt;
DESCRIPTION
getpass displays the null terminated string prompt on the standard error
output, disables echoing, and then reads up to a newline or EOF from the
file /dev/tty. It returns a pointer to a null terminated string of at
most 8 characters. If /dev/tty cannot be opened, it returns a NULL
pointer. An interrupt will terminate input and send an interrupt signal
to the calling program before returning.
NOTES
The return value points to static data whose content is overwritten by
each call.
getpass uses <stdio.h>, which causes it to increase the size of programs
not otherwise using standard I/O more than might be expected.
FILES
/dev/tty