Locale-Sensitive C/C++ String Operation Function
char *getpass(const char *prompt);
Internationalization (I18n) Function Overview
The getpass function outputs prompt , then reads a string in from the terminal without echoing it. It tries to connect to the real terminal, /dev/tty, if possible, to encourage users not to put plaintext passwords in files; otherwise, it uses stdin and stderr.
I18n Issues
There is no ANSI wide character version of this function. The parameters will have to be converted to multibyte UTF-8 characters and then the getpass function can be used. Similarly, the return value will then need to be converted from multibyte UTF-8 characters back to wide characters.
Recommended Replacements*
*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.
Locale-Sensitive C/C++ String Operation Functions
|