9 lines
128 B
C
9 lines
128 B
C
|
#include "endian.h"
|
||
|
#include <stdio.h>
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
printf("%lx\n", htonl(0x12345678));
|
||
|
printf("%x\n", htons(0xabcd));
|
||
|
}
|