Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // cast trick test with strings, by cooler_
- #include <stdio.h>
- #include <stdint.h>
- #include <stdlib.h>
- typedef int64_t s64;
- int
- main()
- {
- s64 x = *(s64*)"action=";
- s64 y = *(s64*)"actions";
- char *test=(char *)&x;
- puts(test);
- fprintf(stdout,"%s \n",(x==y)?"true":"false");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment