Created
March 29, 2018 18:50
-
-
Save val314159/6b6a36819f425eb332013a0878c7d6f1 to your computer and use it in GitHub Desktop.
usleep, what every unix should have
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
cc -o usleep usleep.c && cp usleep /usr/local/bin | |
*/ | |
#include <unistd.h> | |
#include <stdlib.h> | |
int main(int c,char*v[]){ | |
usleep(atoi(v[1])); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment