Wednesday, February 4, 2015

conio.h header file (password)

conio.h header file (password)

 

 

 

#include<stdio.h>
#include<conio.h>
void pass_gen(char pass[])
{
    int i=0;
    char ch;
    while(1)
    {
        ch=getch();
        if(ch==13)
        {
            break;
        }
        else
        putchar('*');
            pass[i++]=ch;
    }
    pass[i]='\0';
}
int main()
{
    char password[50];
pass_gen(password);
printf("%s",password);
return 0;
 
}

No comments:

Post a Comment