Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // my trick is not good idea ;-(
- uint64_t x=*(uint64_t *)"action =";
- char *var="action =gijoe comando teste";
- uint64_t z=*(uint64_t *)var;
- if(x==z)
- puts("OK");
- else
- puts("Nops");
- // what this it ?
- http://en.wikipedia.org/wiki/Magic_number_%28programming%29#Unnamed_numerical_constants
Advertisement
Add Comment
Please, Sign In to add comment