title: Read from STDIN without pressing ENTER
body: <p>I need read the stdin in Linux, although my program will receive only messages without new line.</p>
  
  <p>I tried this code, but is not working:</p>
  
  <pre><code>int main ( void )
  {
      char p_char[48];
  
      memset( p_char, 0, sizeof(p_char) );
      fcntl( STDIN_FILENO, F_SETFL, FNDELAY );
      read( STDIN_FILENO, p_char, sizeof(p_char) ); 
  
  }
  </code></pre>
  
  <p>Someone have a suggestion?</p>