By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,396 Members | 2,501 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,396 IT Pros & Developers. It's quick & easy.

how to cahnge the password in"*" so no one get what user enter?

P: 8
i made a programe in which by using scanf..the user enter the password...but is there any function..or something which , what ever enter the user its changeinto "*" not its shows what he enter.
Oct 27 '06 #1
Share this Question
Share on Google+
3 Replies

P: 13
There isn't any specific function for that, you will have write code for that. The best routine which i suggest for that is to use getchar and some loops.

Dont use scanf to read a string.

Have a go with this hints. post a message if u are stuck

Oct 27 '06 #2

P: 8
actually..i tooke input from what else its typing its apper..
what do u mean use loops...
by using can we change the charachters into some symbols??
Oct 27 '06 #3

Expert Mod 5K+
P: 8,916
You can't but since getchar only reads 1 char at a time you will need a loop to read a whole string.
Oct 27 '06 #4

Post your reply

Sign in to post your reply or Sign up for a free account.