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.
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.
-MethodMan-
Your Move:Life is a game, Play it; Life is a challenge, Meet it; Life is an opportunity, capture it.
Homepage: http://www.freewebs.com/andy_moog/home.html