Skip to content

Instantly share code, notes, and snippets.

/test.c Secret

Created May 17, 2017 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2cf21321e011cdf1555a8b174cc23bc4 to your computer and use it in GitHub Desktop.
Save anonymous/2cf21321e011cdf1555a8b174cc23bc4 to your computer and use it in GitHub Desktop.
Whoops
#include <unistd.h>
#include <stdio.h>
int main(int argc, char **argv) {
char c;
printf("%u\n", argc);
while ((c = getopt(argc, argv, "dfs:u:o:g:c:h")) != -1) {
printf("Handling option %u", c);
break;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment