Skip to content

Instantly share code, notes, and snippets.

@osvein
Created January 15, 2018 18:30
Show Gist options
  • Save osvein/e247830743310cd35ac27118948dfce7 to your computer and use it in GitHub Desktop.
Save osvein/e247830743310cd35ac27118948dfce7 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#define READ2() (data
const char magic[] = { 0xDE, 0xC0, 0x57, 0xFA }; /* 0xFASTCODE */
char
pass1(void)
{
}
int
main(int argc, char **argv)
{
int i, c;
for (i = 0; i < sizeof(magic); ++i) {
if (getchar() != magic[i]) {
fprintf("%s: unknown signature", *argv);
exit(1);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment