Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uwvax!daffy!cat9.cs.wisc.edu!schaut From: schaut@cat9.cs.wisc.edu (Rick Schaut) Newsgroups: comp.sys.ibm.pc Subject: Password Entry Routines (Re: MS-DOS call to read without echo) Message-ID: <4258@daffy.cs.wisc.edu> Date: 7 Feb 90 20:45:38 GMT References: <1036@spocm2.UUCP> Sender: news@daffy.cs.wisc.edu Organization: U of Wisconsin CS Dept Lines: 23 In article mcintyre@turing.cs.rpi.edu (David McIntyre) writes: | In article <1036@spocm2.UUCP> lhv@spocm2.UUCP (Leo Vermeulen) writes: | > | >I have the following problem: I'm trying to write a C-program, using | >Microsoft-C 5.1, that reads a character string from the keyboard and | >assigns it to an character array. Since this string is supposed to be | >a password, I do not want it echoed to the display. | > | >Any responses, by e-mail, would be greatly appreciated. | > | | I sent Leo a response by email, but in case anyone else is wondering | about this: MSC5.1 has a function called getch(), which gets a | character from the console without echo. I don't know about MSC, but Borland's Turbo C 2.0 has a getpass routine that takes a pointer to a prompt and returns the characters entered without echoing those characters to the screen. -- Rick (schaut@garfield.cs.wisc.edu) Peace and Prejudice Don't Mix! (unknown add copy)