18 lines
No EOL
346 B
C
18 lines
No EOL
346 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main(int argc,char **argv)
|
|
{
|
|
printf("Arg Len: %d\n",argc);
|
|
int input = strtol(argv[1],NULL,16);
|
|
printf("Secret inserted: %d\n", input);
|
|
int secret = 0xcafebabe;
|
|
if (secret == input)
|
|
{
|
|
printf("Great success\n");
|
|
}
|
|
else
|
|
{
|
|
printf("Oh boy...\n");
|
|
}
|
|
} |