Skip to content

Instantly share code, notes, and snippets.

@TobiX
Created June 12, 2011 11:26
Show Gist options
  • Save TobiX/1021458 to your computer and use it in GitHub Desktop.
Save TobiX/1021458 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(int argc, char **argv)
{
int use_icmp;
switch (argv[0][0]) {
case 'I':
use_icmp = 1;
break;
}
if (use_icmp) {
printf("YES: %i %i\n", use_icmp, argc);
} else {
printf("NO \\o/\n");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment