Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22000

How can I pause execution of a C program in linux? [duplicate]

$
0
0

I want to promt "Press any key to continue message" and continue the program on pressing any key. I use gcc compiler which does not comes with conio.h, so i cannot use getch(). sleepp() can pause the program, but it uses time. I want to continue program when user press any key. I can also use scanf() function, but it is necessary to press enter after pressing any key.


Viewing all articles
Browse latest Browse all 22000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>