| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <stdlib.h> char * getpass(const char *prompt) |
This function reads up to a Newline (CR or LF) or EOF (Ctrl-D or Ctrl-Z)
from the standard input, without an echo, after prompting with a
null-terminated string prompt. It returns the string of at most 8
characters typed by the user. Pressing Ctrl-C or Ctrl-Break will cause
the calling program to exit(1).
| ANSI/ISO C | No |
| POSIX | No |
char *password = getpass("Password: ");
|