User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:conio.h:getpass

getpass

description of getpass

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;
}

output of getpass c example

  type in your password: superpass
  Password: superpass
advertising
c/conio.h/getpass.txt · Last modified: 2013/02/09 01:10 by 158.181.88.241

Impressum Datenschutz