ntohl

Converts 32-bit quantities from network to host byte order.

Library:LibC
Standard:BSD
Service:Networking

Syntax

  #include <sys/byteorder.h> 
   
  unsigned long ntohl (
     unsigned long   netlong);
  

Parameters

netlong

(IN) Specifies a 32-bit quantity in network byte order.

Return Values

Returns a value that has been converted from network to host byte order.

Remarks

NOTE:Network data order places the most significant byte at the lower memory address, while host data order places the least significant byte at the lower address.

See Also

htonl