Created
March 12, 2013 16:36
-
-
Save anonymous/5144471 to your computer and use it in GitHub Desktop.
php instead of c preprocessor
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
php test.c | gcc -xc -o test - |
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
<?php include_once('/usr/include/stdio.h'); ?> | |
int main() { | |
<?php for ($i = 0; $i < 10; ++$i) { ?> | |
printf("Hello, world!\n"); | |
<?php } ?> | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment