Dolda2000 GitWeb
/
utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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);
+}