This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: enquiry


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/




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]