Created
July 31, 2014 14:07
-
-
Save Cee/f9f9679be576e6e64322 to your computer and use it in GitHub Desktop.
Bang
This file contains hidden or 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
unsigned long long global_value = 0; | |
void bang(unsigned long long val) | |
{ | |
entry_check(2); /* Make sure entered this function properly */ | |
if (global_value == cookie) | |
{ | |
printf("Bang!: You set global_value to 0x%llx\n", global_value); | |
validate(2); | |
} else { | |
printf("Misfire: global_value = 0x%llx\n", global_value); | |
} | |
exit(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment