#include
#include
char *getpass(const char* prompt);
The
- prompt
-
Points to the prompt string to be displayed.
On success,
UNIX 98.
Unsafe.
Use of this function is deprecated. It may be withdrawn in a future release.
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
C语言库函数 getpass
函数名: getpass
功 能: 读一个口令
用 法: char *getpass(char *prompt);
程序例:
#include
int main(void)
{
char *password;
password = getpass("Input a password:");
cprintf("The password is: %s/r/n",
password);
return 0;
}