This is the proper way to implement password in C code. One user had suggested to merely change the entered text color to the same color as the background, this however can be seen if a user highlights the text.
Sincerely,
Jason Daming
Applications Engineer
National Instruments
http://www.ni.com/support