See if this works, I grab it from google:
http://www.phim.unibe.ch/comp_doc/c_...LES/password.c
/************************************************** **********************
*
* Purpose: To read and verify a password.
* Compile: gcc password.c -lcurses
* Notes: To read text from the keyboard on a UNIX system without
* it being echoed to the screen you can use noecho() and
* getch() from curses.h In DOS you can use getch() in conio.h
* Author: M. J. Leslie
* Date: 12-Mar-94
*
************************************************** **********************/
Code omitted...
Yet another reference :
http://www.planet-source-code.com/vb...=8637&lngWId=3