Hello, thanx for your help.<br>
<br>
I need to display stars while the user is entering character<br>
at a password screen. Can someone post an example or give me some commands that i can fool around with. Thanx.<br>
<br>
Korn<br>
You might want to look at the getchar and putchar functions. Your program might look something like this:<br>
<br>
#include <stdio.h><br>
<br>
int main(void)<br>
{<br>
int letter;<br>
while ((letter = getchar()) != '/n')<br>
{<br>
putchar('*');<br>
/* concatenate the letter into the password */<br>
}<br>
return 0;<br>
}<br>
<br>
I haven't compiled this to see if it works but you get the general idea.<br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.