Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <endian.h>
- #include <stdint.h>
- int main(int argc, char *argv[])
- {
- uint32_t bytes = 0x00;
- char *oneByte = (char *)&bytes;
- *oneByte = 0x0F;
- bytes = be32toh(bytes);
- bytes >>= 3 * 8;
- printf("%d\n", bytes);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement