Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 805 Bytes

ntohl.md

File metadata and controls

41 lines (28 loc) · 805 Bytes

Home

Function name : ntohl

Group: Windows Sockets 2 (Winsock) - Library: ws2_32


The ntohl function converts a u_long from TCP/IP network order to host byte order (which is little-endian on Intel processors).


Code examples:

Winsock: changing the byte ordering

Declaration:

u_long ntohl(
  u_long netlong
);  

FoxPro declaration:

DECLARE INTEGER ntohl IN ws2_32;
	INTEGER netlong  

Parameters:

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


Return value:

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