Skip to content

Instantly share code, notes, and snippets.

@f1nality
Created November 28, 2014 15:42
Show Gist options
  • Save f1nality/72107af066e3f083e36a to your computer and use it in GitHub Desktop.
Save f1nality/72107af066e3f083e36a to your computer and use it in GitHub Desktop.
#include <stdio.h>
#define SECRET «1234567890AZXCVBNFRT»
int checksecret(){
char buf[32];
gets(buf);
if(strcmp(SECRET,buf)==0) return 1;
else return 0;
}
void outsecret(){
printf("%s\n",SECRET);
}
int main(int argc, char** argv){
if (checksecret()){
outsecret();
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment