Created
July 20, 2023 20:45
-
-
Save imaami/f0d7e801327d4eb149f442140aa62462 to your computer and use it in GitHub Desktop.
#include <#include> /* because why not? */
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
#!/usr/bin/bash | |
printf '%s\n' "int main(void) { puts(strchr(__FILE__, '#') ?: __FILE__); }" > './#include' | |
printf '#include <%s>\n' 'stdio.h' 'string.h' '#include' | cc -I. -o./includeinclude -xc - | |
./includeinclude |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment