Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Masking the password entered by the user Date: Tue, 07 Feb 2017 09:34:24 -0800 Organization: None to speak of Lines: 17 Message-ID: References: <6fb9a4db-5cba-479c-8ee6-82b7146a2e38@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="04056ce4c9c7dd85ee7ce897aab9f52a"; logging-data="1810"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19IjJG7GxmDcoFUoN4J7cVJ" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:3yxti50oOHjIfsZZTB/vhvCZRGg= sha1:dk1mYpq9DBwzFqE0utmJIxMMR1c= Xref: csiph.com comp.lang.c:103394 Alla _ writes: > One of the functions I have gets a password from the > user. I would like to hide characters as they are entered > by the user. [snip] There is no portable way to do this. See question 19.1 of the comp.lang.c FAQ, . The discussion there is a bit out of date. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"