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

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/conio.h/getpass.txt · Last modified: 2024/02/16 01:05 (external edit)

Impressum Datenschutz