Files
oldlinux-files/Minix/2.0.0/wwwman/man3/getpass.3.html
2024-02-19 00:21:39 -05:00

72 lines
1.0 KiB
HTML

<HTML>
<HEAD>
<TITLE>getpass(3)</TITLE>
</HEAD>
<BODY>
<H1>getpass(3)</H1>
<HR>
<PRE>
</PRE>
<H2>NAME</H2><PRE>
getpass - read a password
</PRE>
<H2>SYNOPSIS</H2><PRE>
<STRONG>#include</STRONG> <STRONG>&lt;minix/minlib.h&gt;</STRONG>
<STRONG>char</STRONG> <STRONG>*getpass(const</STRONG> <STRONG>char</STRONG> <STRONG>*</STRONG><EM>prompt</EM><STRONG>)</STRONG>
</PRE>
<H2>DESCRIPTION</H2><PRE>
<STRONG>Getpass</STRONG> reads a password from the file <STRONG>/dev/tty</STRONG>, or if that cannot be
opened, from the standard input, after prompting with the null-terminated
string <EM>prompt</EM> and disabling echoing. A pointer is returned to a null-
terminated string of at most 32 characters, excluding the null.
</PRE>
<H2>SEE ALSO</H2><PRE>
<STRONG><A HREF="../man3/crypt.3.html">crypt(3)</A></STRONG>.
</PRE>
<H2>BUGS</H2><PRE>
The return value points to static data whose content is overwritten by
each call.
</PRE>
</BODY>
</HTML>