Hey guys, is there a function call for pausing the program that is native to linux? In school, I used to use
delay(1000);
which would delay the program for 1 second, but it doesn't seem to work under Linux. Any help is appreciated.
Printable View
Hey guys, is there a function call for pausing the program that is native to linux? In school, I used to use
delay(1000);
which would delay the program for 1 second, but it doesn't seem to work under Linux. Any help is appreciated.
Try pause() or sleep().
I believe the input is seconds, check the man pages.