ntohl

This function converts a u_long from network byte order to host byte order.

At a Glance

Header file: Winsock.h
Windows CE versions: 1.0 and later

Syntax

u_long ntohl (u_long netlong);

Parameters

netlong

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

Return Values

The ntohl function always returns a value in host byte order.

Remarks

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

See Also

htonl, htons, ntohs