Created
May 30, 2017 11:50
-
-
Save myfreeer/265e49101084dcff62719f4f74dfe675 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#include <windows.h> | |
#include <stdlib.h> | |
int main(int argc, char *argv[]) { | |
if (argc < 2) return 1; | |
char *ptr; | |
unsigned long time = strtoul(argv[1], &ptr, 10); | |
if (ptr[0] != argv[1][0]) { | |
Sleep(time); | |
return 0; | |
} | |
return -1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment