Skip to content

Instantly share code, notes, and snippets.

@leftis
Created August 16, 2015 20:41
Show Gist options
  • Save leftis/a710363d5a69d67542c0 to your computer and use it in GitHub Desktop.
Save leftis/a710363d5a69d67542c0 to your computer and use it in GitHub Desktop.
What i don't understand ?
#include <stdio.h>
int main(int argc, char **argv) {
static int count = 0;
int (*_main)(int, char **) = &main;
if (count < 1) {
count++;
argv[0][6] = '\n';
_main(argc, argv);
} else {
printf("%s", argv[0]);
return 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment