AFPBridge/endiantest.c
Stephen Heumann b5c3a29f37 Initial version, with test program.
It can currently send a GetStatus request and get a response.
2017-03-18 19:42:25 -05:00

9 lines
128 B
C

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