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