I want to create a program in C
which will take the input (in terminal) but don't show it on the terminal in direct form, rather it will show the input in the form of Asterisks (****), as if we are entering a password.
I haven't written anything yet because I don't even have an idea that how to start!
Can you tell me how to write its code and what's the logic we should apply if there is no inbuilt function for it (or no headers)?
Sample:
Enter a string : this is string
It should be taken as
Enter a string : **************