fork download
  1.  
  2. #include <netinet/in.h>
  3. #include <stdio.h>
  4.  
  5.  
  6. int main() {
  7.  
  8. int i=0x0a0b0c0d;
  9.  
  10. printf("\nNTOHL(0x%x) is 0x%x\n", i, ntohl(i));
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5304KB
stdin
Standard input is empty
stdout
NTOHL(0xa0b0c0d) is 0xd0c0b0a