T
Till Crueger
Hi,
I know you shouldn't do this, but I just thought of a really nasty way to
obfuscate c code. I am however not sure if this is correct c at all. What
I did was this:
file obfuscate.c:
#include <stdio.h>
int main(int argc, char* argv[]){
#include "obfuscate.h"
}
file obfuscate.h:
printf("hello world\n");
I also tried some variations on this scheme, and my compiler accepted all
of them. But does it have to, or is this not valid c?
Till
I know you shouldn't do this, but I just thought of a really nasty way to
obfuscate c code. I am however not sure if this is correct c at all. What
I did was this:
file obfuscate.c:
#include <stdio.h>
int main(int argc, char* argv[]){
#include "obfuscate.h"
}
file obfuscate.h:
printf("hello world\n");
I also tried some variations on this scheme, and my compiler accepted all
of them. But does it have to, or is this not valid c?
Till