Return to test-ntohl.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
File: [cvsweb.bsd.lv] / mandoc / test-ntohl.c (download)
Revision 1.1, Fri Aug 5 23:15:08 2016 UTC (8 years, 1 month ago) by schwarze
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. |
#include <arpa/inet.h> int main(void) { return htonl(ntohl(0x3a7d0cdb)) != 0x3a7d0cdb; }