title: Hide password input on terminal
body: <p>I want to mask my password while writing it with <code>*</code>.
  I use Linux GCC for this code.
  I know one solution is to use <code>getch()</code> function like this</p>
  
  <pre><code>#include &lt;conio.h&gt;   
  int main()
  {
      char c,password[10];
      int i;
      while( (c=getch())!= '\n');{
          password[i] = c;
          printf("*");
          i++;
      }
      return 1;
  }
  </code></pre>
  
  <p>but the problem is that <code>GCC</code> does not include <code>conio.h</code> file so, <code>getch()</code> is useless for me.
  Does anyone have a solution?</p>