C Code Password Field Simulation

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
legend986
Forum Contributor
Posts: 258
Joined: Sun Jul 15, 2007 2:45 pm

C Code Password Field Simulation

Post by legend986 »

PHP and other languages have a really simple way of defining password fields. I was wondering if the same is possible even in C. I mean, suppopse I want to print a statement if the user enters the correct username/password... How would I do it in C?

I can compare the passwords with that already stored in a file. That's not a problem but how would I display '*' when the user enters his password?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

User avatar
legend986
Forum Contributor
Posts: 258
Joined: Sun Jul 15, 2007 2:45 pm

Post by legend986 »

Do I have to download that pwd.h library or is pre-built in one of the C Compiler Packages? I'm sorry... I never used it and I don't presently have a C Package so I am unable to verify this... For example, can I use that function with the Turbo C or Borland C which run on the Windows Platform?
Post Reply