Binand, If i understand it properly then u want a mechanism from where u want to get an input from the console (keyboard) and dont want to display that on the console.
Use getch(),wgetch() etc. and set noecho (so that no chars are displayed). it works exactly the same. getpass() is depriciated function call, so dont use it. vineet > From: Binand Raj S. <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Re: [LIH]reading password > Date: 22 Jan 2003 14:51:48 +0530 > > On Wed, Jan 22, 2003 at 12:19:58AM -0800, krishnaprasad yalavarthi wrote: > > Can any one plz help me how to read a password > > form > > console during runtime of a c program. i tried with > > getpassword(), but found no use. > > Never heard of getpassword(). Try getpass(3). > > Probably belongs on LIP. Ah well... > > Binand > > -- > Russian Roulette with Unix: > while :; do kill $RANDOM &> /dev/null && break || sleep 1; done > > ---- >
signature.asc
Description: This is a digitally signed message part
