diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-08-05 23:15:08 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-08-05 23:15:08 +0000 |
commit | 1bb4f8bb9e7406c14961365a652ce2e16ab7664c (patch) | |
tree | 2a8129ceef5cd8f7b879e2e237d86550acfc26da /test-ntohl.c | |
parent | 1f861fd3370a3a1e8fe52966b1dc54ac8e106cd9 (diff) | |
download | mandoc-1bb4f8bb9e7406c14961365a652ce2e16ab7664c.tar.gz |
The concept of endianness seems to be somewhat newfangled, so the
respective conversion functions are not yet properly standardized.
Rumour has it that POSIX is working on it, though.
For now, sprinkle some configuration glue.
Diffstat (limited to 'test-ntohl.c')
-rw-r--r-- | test-ntohl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test-ntohl.c b/test-ntohl.c new file mode 100644 index 00000000..52dcc256 --- /dev/null +++ b/test-ntohl.c @@ -0,0 +1,7 @@ +#include <arpa/inet.h> + +int +main(void) +{ + return htonl(ntohl(0x3a7d0cdb)) != 0x3a7d0cdb; +} |