if you have any questions please ask
commented and non-commented file.
P.S sorry for the crappy comments:o
|
|
|
#include <stdio.h>
#include <conio.h>
#define KEY_SPACE 13
#define PASS_SIZE 20
int main()
{
char pass[PASS_SIZE];
register int i = 0;
while ((pass[i++] = getch()) != KEY_SPACE && i<PASS_SIZE ) putchar('*');
return 0;
}