aboutsummaryrefslogtreecommitdiffstats
path: root/sleep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sleep.c')
-rw-r--r--sleep.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sleep.c b/sleep.c
new file mode 100644
index 0000000..0f1d9e3
--- /dev/null
+++ b/sleep.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
+int main(int argc, char *argv[])
+{
+ if (argc > 0)
+ sleep(atoi(argv[1]));
+}