Hi friends,
Can anyone please tell me how can I set echoing the characters off while I type them on the keyboard ? e.g; I have to input password in c code but that must not be displayed while typing. I am working in Linux.
Thanks.
neeludhiman
0
Newbie Poster
Recommended Answers
Jump to Postare u working on a command line app??
try this
while(1) { if (((str[i] = getch()) == '\n') { break ; } else ++i; }
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.