C - equivalent of .NET Console.ReadLine

Posted by John Williams on Stack Overflow See other posts from Stack Overflow or by John Williams
Published on 2010-03-18T19:37:46Z Indexed on 2010/03/18 19:41 UTC
Read the original article Hit count: 341

Filed under:
|
|
|

I need to accomplish the same behavior as .NET Console.ReadLine function provides. The program execution should continue when the user pushes enter key.

The following code is not sufficient, as it requires additional input:

printf ("Press Enter to continue"); scanf ("%s",str);

Any suggestions?

© Stack Overflow or respective owner

Related posts about c

    Related posts about console