/**handling getopt_long this isn't cult of the dead cow's getopt_long**/ #include #include #include static struct option const long_opts[] = { {NULL, 0, NULL, 'a'}, {NULL, 0, NULL, 'b'}, {NULL, 0, NULL, 'v'}, {NULL, 0, NULL, 0} }; int main (int argc, char **argv) { int c; while ((c = getopt_long (argc, argv, "abv", long_opts, NULL)) != -1) { switch (c) { case 'a': printf("\na is a cow .. moooooo\n"); break; case 'b': printf("\nb is mickey mouse\n"); break; case 'v': printf("\nAre you k1dd1ng me biatch you ask for verbose mode when i fvck your pussy ??? \n"); break; case 'c': printf("\nStop here biatch !\n"); break; default: /**handle getopt_long **/ printf("\nwell what to do here i don't know\n"); break; } } return 0; }