01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GETP ASS ( 3C ) GETP ASS ( 3C )<br />

NAME<br />

getpass - read a password<br />

SYNOPSIS<br />

char •getpass (prompt)<br />

char *prompt;<br />

DESCRIPTION<br />

Getpass reads up to a newline or EOF from the file J dev /tty,<br />

after prompting on the standard error output with the nullterminated<br />

string prompt and disabling echoing. A pointer is<br />

returned to a null-terminated string of at most 8 characters. If<br />

/ dev /tty cannot be opened, a NULL pointer is returned. An<br />

interrupt will terminate input and send an interrupt signal to the<br />

calling program before returning.<br />

FILES<br />

/dev/tty<br />

SEE ALSO<br />

crypt(3C).<br />

WARNING<br />

The above routine uses , which causes it to increase<br />

the size of programs, not otherwise using standard 1/0, more than<br />

might be expected.<br />

BUGS<br />

The return value points to static data whose content is overwritten<br />

by each call.<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!