Created
October 31, 2014 03:44
-
-
Save aweimeow/ae837e83b19893b27252 to your computer and use it in GitHub Desktop.
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
#include<stdio.h> | |
#include<string.h> | |
int main() { | |
int flag=0; | |
char buf[20]; | |
char * point= (char *) &flag; | |
fprintf(stderr,"How can you write on flag?\n"); | |
fgets(buf,20,stdin); | |
fprintf(stderr,"Your input is "); | |
fprintf(stderr,"\n"); | |
if(flag == -1) { | |
fprintf(stderr,"Good job.\n"); | |
fprintf(stderr,"Your checkin key is....."); | |
system("/checkin"); | |
} | |
else { | |
fprintf(stderr,"flag = %d Sorry....\n",flag); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment