39 #include "blocxx/BLOCXX_config.h" 44 #ifdef BLOCXX_HAVE_UNISTD_H 48 #if defined(BLOCXX_WIN32) 61 #if defined(BLOCXX_WIN32) 62 #define MAXPASSWORD 128 67 char bfr[MAXPASSWORD+1];
70 _cputs(prompt.c_str());
75 if (ch !=
'\r' && len < MAXPASSWORD)
91 char* ptr = ::getpassword(prompt.
c_str(), pw, 128);
93 char* ptr = ::getpass(prompt.
c_str());
96 memset(ptr, 0x00, strlen(ptr) *
sizeof(
char));
This String class is an abstract data type that represents as NULL terminated string of characters.
const char * c_str() const
BLOCXX_COMMON_API String getPass(const String &prompt)
The getpass function displays a prompt to the standard error output, and reads in a password from /de...