🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #41724

MS-DOS call to read without echo

#41724
From: Leo Vermeulen
Date: Mon, 05 Feb 1990 17:34
17 lines
1237 bytes
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.

Does anybody have any advice on how to write this bit of code? I am 
accustomed to a Un*x environment, and have not too much experience
coding in C for MS-DOS, so please keep it simple.

Any responses, by e-mail, would be greatly appreciated.

Leo Vermeulen  (UUCP: ..!uunet!mcsun!sunic!spocm2!lhv)
--------------------------------------------------------------------------
Stockholm -- where the banks are on strike, and public transport will
             follow suit next week. Nobody will be able to pay for a taxi!
--------------------------------------------------------------------------
Technical Details
Message-ID: <1036@spocm2.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!eru!luth!sunic!spocm2!lhv

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!eru!luth!sunic!spocm2!lhv
From: lhv@spocm2.UUCP (Leo Vermeulen)
Newsgroups: comp.sys.ibm.pc
Subject: MS-DOS call to read without echo
Message-ID: <1036@spocm2.UUCP>
Date: 5 Feb 90 17:34:43 GMT
Organization: Philips TDS, Stockholm, Sweden
Lines: 17