Programming Reference/Librarys
Question & Answer
Q&A is closed
reads a password
getpass reads a password from the system console, after the user is prompted for a password to a null-terminated string and display the password has been disabled. A pointer to a null-terminated string of up to eight characters (not counting null terminator) is returned.
#include <conio.h> int main( void ) { char *password; password = getpass("type in your password: "); cprintf("Password: %s\n", password); return 0; }
type in your password: superpass Password: superpass