Standards / Extensions | C or C++ | Dependencies |
---|---|---|
XPG4.2 |
both |
#define _XOPEN_SOURCE_EXTENDED 1
#include <arpa/inet.h>
in_addr_t htonl(in_addr_t hostlong);
SUSV3
#define _POSIX_C_SOURCE 200112L
#include <apar/inet.h>
uint32_t htonl(uint32_t hostlong);
#define _OE_SOCKETS
#include <sys/types.h>
#include <arpa/inet.h>
#include <netinet/in.h>
unsigned long htonl(unsigned long a);
htonl() returns the translated long integer.