#include <stdio.h> #include <conio.h> #include"getpasswd.h" char passwd[12] = ""; char *getpasswd() { char c; int i = 0; while ((c=getch()) != ' ') { if(c==8) i--; else { passwd[i++] = c; putchar('*'); } } passwd[i] = '
#include <stdio.h> #include <conio.h> #include"getpasswd.h" char passwd[12] = ""; char *getpasswd() { char c; int i = 0; while ((c=getch()) != ' ') { if(c==8) i--; else { passwd[i++] = c; putchar('*'); } } passwd[i] = '