plan9port/src/cmd/sleep.c

14 lines
170 B
C
Raw Normal View History

#include <u.h>
#include <libc.h>
void
main(int argc, char *argv[])
{
long secs;
if(argc>1)
for(secs = atol(argv[1]); secs > 0; secs--)
sleep(1000);
exits(0);
}