Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Coherent 3.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


getpass()                General Function               getpass()




Get password with prompting

char *getpass(prompt)
char *prompt;

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


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026