Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <arpa/inet.h>
- #include <stdio.h>
- int main(int argc, char** argv) {
- int32_t pos = 1337;
- int32_t neg = -123;
- printf("host-endian: %d => 0x%08x %d => 0x%08x n",
- pos, pos, neg, neg);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement