

getpass()                General Function               getpass()




Get password with prompting

cchhaarr *ggeettppaassss(_p_r_o_m_p_t)
cchhaarr *_p_r_o_m_p_t;

getpass first prints the prompt.  Then it disables echoing of in-
put characters  on the terminal device  (either the file /dev/tty
or the  standard input), reads  a password from  it, and restores
echoing on the terminal.  It returns the given password.

***** Files *****

/dev/tty

***** See Also *****

crypt(), general functions, login, passwd, su

***** Notes *****

The password  is stored in a static  location that is overwritten
by successive calls.


































COHERENT Lexicon                                           Page 1


