Created
July 18, 2009 12:56
-
-
Save pcdavid/149544 to your computer and use it in GitHub Desktop.
self.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
int main() { char *self = "\"#include <string.h>\nint main() { char *self=%s; char *format = strdup(self+1); format[strlen(format)-2] = 0; print(format, self); return 0;}\""; char *format = strdup(self+1); format[strlen(format)-2] = 0; printf(format, self); return 0;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment