getpass.3

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 48 行

3
48
字号
.\" SCCSID: @(#)getpass.3	8.1	9/11/90.TH getpass 3 .SH Namegetpass \- read a password.SH Syntax.nf.B char *getpass(prompt).B char *prompt;.fi.SH Description.NXR "getpass subroutine".NXA "getpass subroutine" "crypt subroutine".NXR "password" "reading"The.PN getpasssubroutinereads a password from the file .PN /dev/tty ,or if that cannot be opened, from the standard input,after prompting with the null-terminated string.I promptand disabling echoing.The .PN getpasssubroutine can return up to .PN PASS_MAX characters. .PN PASS_MAX is defined in.PN /usr/include/sys/limits.h. A pointer is returned to a null-terminated stringof at most 16 characters..SH EnvironmentWhen your program is compiled using the System V environment,if the file .PN /dev/ttycannot be opened, a NULLpointer is returned.  An interrupt will terminateinput and send an interrupt signal to the callingprocess before returning..SH RestrictionsThe return value points to static datawhose content is overwritten by each call..SH Files.PN /dev/tty.SH See Also.PN crypt (3)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?