Added a few previously unversioned utils.
[utils.git] / usleep.c
diff --git a/usleep.c b/usleep.c
new file mode 100644 (file)
index 0000000..1e265d9
--- /dev/null
+++ b/usleep.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
+int main(int argc, char **argv)
+{
+    if(argc < 2)
+    {
+       fprintf(stderr, "usage: usleep usecs\n");
+       return(1);
+    }
+    usleep(atoi(argv[1]));
+    return(0);
+}