22 lines
332 B
C
Raw Normal View History

2010-03-17 14:00:29 +02:00
#if defined(_WIN32)
# include <windows.h>
#else
# include <unistd.h>
#endif
2010-06-23 01:18:35 +03:00
/* sleeps for 4n seconds, where n is the argument to the program */
2010-03-17 14:00:29 +02:00
int main(int argc, char** argv)
{
int time;
if(argc > 1)
{
2010-06-23 01:18:35 +03:00
time = 4 * atoi(argv[1]);
2010-03-17 14:00:29 +02:00
}
#if defined(_WIN32)
Sleep(time * 1000);
#else
sleep(time);
#endif
return 0;
}