Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

quick system pause?

Status
Not open for further replies.

zanza

Programmer
Feb 18, 2002
89
US
what would be the fastest way to pause the system (something like "getch()"?) until the user presses a key? žÅNžÅ
 
you can also try:
Code:
#include <stdlib.h>
....
..
system(&quot;pause&quot;);
 
here's a C function to do that:

Code:
int pause()
{
   char c = getch();

   if ((c == 0) || (c == 224))
      return getch();
   return c;
}

but need <conio.h>.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top