ntohl

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function converts a u_long from TCP/IP network order to host byte order, which is little-endian on Intel processors.


u_long ntohl(
  u_long netlong
);

netlong

[in] 32-bit number in TCP/IP network byte order.

This function always returns a value in host byte order. If the netlong parameter was already in host byte order, then no operation is performed.

This function takes a 32-bit number in TCP/IP network byte order and returns a 32-bit number in host byte order.

Headerwinsock2.h
LibraryWs2.lib
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show: