I'm writing a few functions for getting and storing a user password. It's all working OK but is there any way of replacing what is typed at the prompt with an asterisk, for example?
This is fairly standard behaviour in windowed applications I've had a good look through the C libraries but all of the fgets/getc type functions don't seem to offer any control over this.
EDIT: trying to do this with ANSI C, running on OS X. Answers below have pointed me in the right direction - my search didn't turn up a few of the links...