This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: enquiry
- To: adarshmp at rediffmail dot com
- Subject: Re: enquiry
- From: Erik Mouw <J dot A dot K dot Mouw at its dot tudelft dot nl>
- Date: Fri 22 Sep 2000 11:15:11 +0100 (MDT)
- Cc: gcc at gcc dot gnu dot org
- Organization: Eric conspiracy secret labs
On 22 Sep 2000 03:23:25 -0000, Adarsh MP wrote:
> I am Adarsh. I am doing my masters in Computers, at Bradley Univ. I am now in
> the midst of developing a project, ie. simulation of an operating system shell.
> I am facing the problem with GCC compiler. I am not able to use the command
> getch() even though it is specified in help.
This is actually the wrong mailing list, this list is about the
development of GCC itself.
> i am trying to use it coz i have to accept the passwords from the user
> without echoing it. Can u plz suggest me a method
> thanking u
The getch() function is not a standard libc function. The correct way
depends on your target system. If you're using a UNIX like system, the
proper way is to use the function getpass(), or build such a function
yourself by using select() and read() on stdin.
Erik
--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands
Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/