Skip to content

Instantly share code, notes, and snippets.

@myfreeer
Created May 30, 2017 11:50
Show Gist options
  • Save myfreeer/265e49101084dcff62719f4f74dfe675 to your computer and use it in GitHub Desktop.
Save myfreeer/265e49101084dcff62719f4f74dfe675 to your computer and use it in GitHub Desktop.
#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